Config.setAttribute(obj, key, value);
}
if (obj instanceof ClassLoaderListener) {
ClassLoaderListener listener = (ClassLoaderListener) obj;
ClassLoader loader = Thread.currentThread().getContextClassLoader();
for (; loader != null; loader = loader.getParent()) {
if (loader instanceof EnvironmentClassLoader) {
((DynamicClassLoader) loader).addListener(listener);