code: public static ClassLoader[] getClassLoaders(ClassLoader... classLoaders) {
  
  		if (classLoaders != null && classLoaders.length > 0) {
  			return classLoaders;
  		}
  
  		final ClassLoader ctxClassLoader = Thread.currentThread()
  				.getContextClassLoader();
  		final ClassLoader staticClassLoader = ClassLoaderUtils.class
  				.getClassLoader();
  
  		if (ctxClassLoader == null) {
  			if (staticClassLoader == null) {
  				return new ClassLoader[] {};
  			} else {
  				return new ClassLoader[] { staticClassLoader };
  			}
  		} else {
  			if (staticClassLoader == null) {
  				return new ClassLoader[] { ctxClassLoader };
  			} else {
  				return new ClassLoader[] { ctxClassLoader, staticClassLoader };
  			}
  		}
  	}
docs: Gets {@link ClassLoader} for the current thread
  @param classLoaders ClassLoaders to be used if specified
  @return The ClassLoaders, either those specified, or discovered
  ClassLoaders for the current thread