if (infoGrantOwner.getGrantOwnerNumber() == null) {  int aux = maxNumber + 1; Integer nextNumber = Integer.valueOf(aux); grantOwner.setNumber(nextNumber); } else grantOwner.setNumber(infoGrantOwner.getGrantOwnerNumber());
    private GrantOwner prepareGrantOwner(GrantOwner grantOwner, Person person,	    InfoGrantOwner infoGrantOwner, Integer maxNumber) throws ExcepcaoPersistencia {	grantOwner.setPerson(person);	grantOwner.setCardCopyNumber(infoGrantOwner.getCardCopyNumber());	grantOwner.setDateSendCGD(infoGrantOwner.getDateSendCGD());	if (infoGrantOwner.getGrantOwnerNumber() == null) {	    // Generate the GrantOwner's number	    int aux = maxNumber + 1;	    Integer nextNumber = Integer.valueOf(aux);	    grantOwner.setNumber(nextNumber);	} else	    grantOwner.setNumber(infoGrantOwner.getGrantOwnerNumber());	return grantOwner;    }