PersistenceManager pm = PMF.get().getPersistenceManager();
try {
Configuration e = pm.getObjectById(Configuration.class, propertyName);
value = e.getValue();
} catch (Exception e) {
e.printStackTrace();
log.log(Level.SEVERE, e.getMessage());
} finally {
pm.close();
}