public static SbiFuncRole makeNewSbiFunctRole(SbiFuncRole functrole,
Integer newFunctid, Integer newRoleid) {
logger.debug("IN");
SbiFuncRoleId functroleid = functrole.getId();
SbiFuncRoleId newFunctroleid = new SbiFuncRoleId();
if (newFunctid != null) {
SbiFunctions sbifunct = functroleid.getFunction();
SbiFunctions newFunct = ImportUtilities.makeNewSbiFunction(sbifunct, newFunctid);
newFunctroleid.setFunction(newFunct);
}
if (newRoleid != null) {
SbiExtRoles sbirole = functroleid.getRole();
SbiExtRoles newRole = ImportUtilities.makeNewSbiExtRole(sbirole, newRoleid);
newFunctroleid.setRole(newRole);
}
SbiFuncRole newFunctRole = new SbiFuncRole();
newFunctRole.setId(newFunctroleid);
logger.debug("OUT");
return newFunctRole;