JPAUserFlag.class.getName() + ";" +
JPASubscription.class.getName() + ")");
properties.put("openjpa.LockTimeout", locktimeout + "");
entityManagerFactory = OpenJPAPersistence.getEntityManagerFactory(properties);
JPACachingUidProvider uidProvider = new JPACachingUidProvider(entityManagerFactory);
JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory);
mailboxManager = new OpenJPAMailboxManager(mf, null, uidProvider);
mailboxManager.init();
// Set the lock timeout via SQL because of a bug in openJPA