properties.putAll(init.getApp().properties);
final Thread thread = Thread.currentThread();
final ClassLoader current = thread.getContextClassLoader();
thread.setContextClassLoader(init.getContext().getClassLoader());
final ServicesManager servicesManager = new ServicesManager();
try {
servicesManager.init(properties); // will look for batchee.properties so need the right classloader
} finally {
thread.setContextClassLoader(current);
}
init.getContext().set(ServicesManager.class, servicesManager);