public static SbiParuseCk makeNewSbiParuseCk(SbiParuseCk paruseck,
Integer newParuseid, Integer newCheckid) {
logger.debug("IN");
// build a new id for the SbiParuseCheck
SbiParuseCkId parusecheckid = paruseck.getId();
SbiParuseCkId newParusecheckid = new SbiParuseCkId();
if (newParuseid != null) {
SbiParuse sbiparuse = parusecheckid.getSbiParuse();
SbiParuse newParuse = ImportUtilities.makeNewSbiParuse(sbiparuse, newParuseid);
newParusecheckid.setSbiParuse(newParuse);
}
if (newCheckid != null) {
SbiChecks sbicheck = parusecheckid.getSbiChecks();
SbiChecks newCheck = ImportUtilities.makeNewSbiCheck(sbicheck, newCheckid);
newParusecheckid.setSbiChecks(newCheck);
}
SbiParuseCk newParuseck = new SbiParuseCk();
newParuseck.setId(newParusecheckid);
newParuseck.setProg(paruseck.getProg());
logger.debug("OUT");