public static PersistentBeanManager initGwtProxyBeanManager(IPersistenceUtil persistenceUtil)
{
if (PersistentBeanManager.getInstance().getPersistenceUtil() == null)
{
PersistentBeanManager beanManager = PersistentBeanManager.getInstance();
beanManager.setPersistenceUtil(persistenceUtil);
StatelessProxyStore proxyStore = new StatelessProxyStore();
proxyStore.setProxySerializer(new GwtProxySerialization());
beanManager.setProxyStore(proxyStore);
ProxyClassMapper classMapper = new ProxyClassMapper();
classMapper.setPersistenceUtil(persistenceUtil);
beanManager.setClassMapper(classMapper);
}
return PersistentBeanManager.getInstance();
}