public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role) { if (role == null || role.getId() < 1) throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels"); List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId()); RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo(); //to flag we have hit db once already voRoleDisciplineSecurityLevels.setIsConfigLoaded(true); voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs)); return voRoleDisciplineSecurityLevels; }