}
return pm;
}
static IPersistenceMechanism pmInit() {
IPersistenceMechanism returnValue = null;
if (Constants.isPersistent()) {
try {
//#if relacional
returnValue = PersistenceMechanism.getInstance();
//#endif
//#if norelacional
//@ returnValue = PersistenceMechanismJDO.getInstance();//Thiago alterou aqui
//#endif
// Persistence mechanism connection
returnValue.connect();
} catch (PersistenceMechanismException e) {
e.printStackTrace();
} catch (Exception e) {
// Persistence mechanism desconnection for resource release
try {