for (Map.Entry<String, String> global : globals.entrySet()) {
Class<?> globalClass;
try {
globalClass = bundleContext.getBundle().loadClass(global.getValue());
} catch (ClassNotFoundException e) {
throw new WorkflowException(String.format("Could not load class for global (%s)", global), e);
}
Filter filter =
OsgiUtils.getFilterForLocation(globalClass, global.getKey(),
ContextHolder.get().getCurrentContextId());
Object osgiServiceProxy = utilsService.getOsgiServiceProxy(filter, globalClass);