serverFeature.setFeatureName("test-feature-name");
serverFeature.setClassName("test.feature.class.name");
persistenceManager.save(serverFeature);
// create access request
IAccessRequest accessRequest = persistenceManager.newInstance(IAccessRequest.class);
accessRequest.setOrigin("localhost");
accessRequest.setSubdomains(false);
accessRequest.setGranted(true);
accessRequest.setWidget(widget);
persistenceManager.save(accessRequest);
// commit and close persistence manager transaction
persistenceManager.commit();
PersistenceManagerFactory.closePersistenceManager();