ClassLoader oldLoader = thread.getContextClassLoader();
try {
thread.setContextClassLoader(_classLoader);
XmlConfigContext builder = createBuilder();
InjectManager webBeans = InjectManager.create();
setProperty("__FILE__", FileVar.__FILE__);
setProperty("__DIR__", DirVar.__DIR__);
return builder.configure(obj, topNode);
} finally {
thread.setContextClassLoader(oldLoader);
}
}