try final CrmRsServiceImpl am SpectrumApplicationM oduleImpl createDef

1
2
3
try(final CrmRsServiceImpl am = SpectrumApplicationModuleImpl.createDefaultRootAM(CrmRsServiceImpl.class)) {
am.getTransaction().commit();
}