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