Person pUserAdmin = new Person(username, name, gender, null, null, null, null, null, null, null);
Person pUserAdmin = new Person(name, gender, null, null, null, null, null, null, null);
	private void installAdministrationUser() {		if (isCreateFenixManagerUser()) {			String name = getFenixManagerUserName();			String username = getFenixManagerUser();			String password = getFenixManagerUserPassword();			Gender gender=Gender.parseGender(getFenixManagerUserGender());			MetadataManager.init("build/WEB-INF/classes/domain_model.dml");			SuportePersistenteOJB.fixDescriptors();			RootDomainObject.init();			ISuportePersistente persistentSupport = null;			try {				persistentSupport = PersistenceSupportFactory.getDefaultPersistenceSupport();				persistentSupport.iniciarTransaccao();				Person pUserAdmin = new Person(username, name, gender, null, null, null, null, null, null, null);				Login login = Login.readLoginByUsername(username);				// crypt password? PasswordEncryptor.encryptPassword(newPassword)				login.setPassword(PasswordEncryptor.encryptPassword(password));				login.setActive(true);				login.setBeginDateDateTime(new DateTime());				pUserAdmin.addPersonRoleByRoleType(RoleType.MANAGER);				pUserAdmin.addPersonRoleByRoleType(RoleType.PERSON);				//The strategy of adding person to PERSON role changes the username...				//So change it back to what it was				pUserAdmin.setUsername(username);				//If it changes the username, maybe it may also change the password,				//so redefine it!!!				login.setPassword(PasswordEncryptor.encryptPassword(password));				persistentSupport.confirmarTransaccao();			}			catch (Exception ex) {				ex.printStackTrace();				try {					if (persistentSupport != null) {						persistentSupport.cancelarTransaccao();					}				}				catch (ExcepcaoPersistencia e) {					throw new Error(e);				}			}			System.out.println("Initialization complete.");		}	}