try final CrmRsServiceImpl am SpectrumApplicationM oduleImpl createDef

1
2
3
4
5
try(final CrmRsServiceImpl am = SpectrumApplicationModuleImpl.createDefaultRootAM(CrmRsServiceImpl.class)) {
am.getTransaction().commit();
} catch(Exception ex) {
CrmRsServiceImpl.getLogger().severe(ex);
}