org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java
public static ClassLoader getDefaultClassLoader()
  {
    ClassLoader cl = null;
    try
    {
      cl = Thread.currentThread().getContextClassLoader();
    }
    catch(Throwable ex)
    {
      if(log.isDebugEnabled())
        log.debug("Cannot access thread context ClassLoader - falling back to system class loader",
                   ex);
    }
    if(cl == null)
    {
      // No thread context class loader -> use class loader of this class.
      cl = ReflectUtils.class.getClassLoader();
    }
    return cl;
  }
public static ClassLoader getDefaultClassLoader()
  {
    ClassLoader cl = null;
    try
    {
      cl = Thread.currentThread().getContextClassLoader();
    }
    catch(Throwable ex)
    {
      if(log.isDebugEnabled())
        log.debug("Cannot access thread context ClassLoader - falling back to system class loader",
                   ex);
    }
    if(cl == null)
    {
      // No thread context class loader -> use class loader of this class.
      cl = ReflectUtils.class.getClassLoader();
    }
    return cl;
  }
Return a the default class loader (the one associated to the current thread or the one from
this class)

@return the default ClassLoader (never <code>null</code>)
@see java.lang.Thread#getContextClassLoader()