infoGrantOwner.getInfoPersonEditor().setUsername("T" + System.currentTimeMillis());
infoGrantOwner.getInfoPersonEditor().setUsername("X" + System.currentTimeMillis());
    public Integer run(InfoGrantOwner infoGrantOwner) throws FenixServiceException, ExcepcaoPersistencia {	Person person = null;	GrantOwner grantOwner = null;	Country country = null;	if (infoGrantOwner.getInfoPersonEditor().getInfoPais() != null) {	    country = rootDomainObject.readCountryByOID(infoGrantOwner.getInfoPersonEditor()		    .getInfoPais().getIdInternal());	} else {	    // If the person country is undefined it is set to default	    // "PORTUGUESA NATURAL DO CONTINENTE"	    // In a not distance future this will not be needed since the coutry	    // can never be null	    country = Country.readCountryByNationality("PORTUGUESA NATURAL DO CONTINENTE");	}	// create or edit person information	if (infoGrantOwner.getInfoPersonEditor().getIdInternal() == null) {	    infoGrantOwner.getInfoPersonEditor().setUsername("T" + System.currentTimeMillis());	    person = new Person(infoGrantOwner.getInfoPersonEditor(), country);	} else {	    person = (Person) rootDomainObject.readPartyByOID(infoGrantOwner.getInfoPersonEditor()		    .getIdInternal());	    person.edit(infoGrantOwner.getInfoPersonEditor(), country);	}	// verify if person is new	if (infoGrantOwner.getInfoPersonEditor().getIdInternal() != null) {	    grantOwner = checkIfGrantOwnerExists(infoGrantOwner.getGrantOwnerNumber());	}	// create or edit grantOwner information	Integer maxNumber = null;	if (grantOwner == null) {	    maxNumber = GrantOwner.readMaxGrantOwnerNumber();	    grantOwner = new GrantOwner();	    if (!person.hasRole(RoleType.PERSON)) {		person.addPersonRoles(Role.getRoleByRoleType(RoleType.PERSON));	    }	    person.addPersonRoles(Role.getRoleByRoleType(RoleType.GRANT_OWNER));	}	grantOwner = prepareGrantOwner(grantOwner, person, infoGrantOwner, maxNumber);	if (infoGrantOwner.getInfoPersonEditor().getIdInternal() == null) {	    	    person.changeUsername(RoleType.GRANT_OWNER);	}	return grantOwner.getIdInternal();    }