//no need to set context class loader as this is not being used to call across modules
DefaultProxyFactoryCreator proxyFactoryCreator = new DefaultProxyFactoryCreator();
proxyFactoryCreator.setSetContextClassLoader(false);
final StaticServiceReferenceProxyFactorySource proxyFactorySource = new StaticServiceReferenceProxyFactorySource(proxyTypes, entry);
proxyFactory = proxyFactoryCreator.createProxyFactory(proxyFactorySource, beanName, null);
}