p = null;
p = postalHome.create(); p.setCountry(country); p.setPostalCode(postal); p.setName(city); p.store();
	private User saveUser(String name, String ssn, IWTimestamp dateOfBirth, Gender gender, String address, String postal, String city, Country country, String tel, String mobile, String email) {		User user = null;		try {			if (dateOfBirth == null) {				dateOfBirth = getBirthDateFromSSN(ssn);			}			user = getUserBiz().createUserByPersonalIDIfDoesNotExist(name, ssn, null, dateOfBirth);			user.setGender(((Integer) gender.getPrimaryKey()).intValue());			user.store();			if (address != null && !address.equals("")) {				AddressHome addressHome = (AddressHome) getIDOHome(Address.class);				Address a = addressHome.create();				a.setStreetName(address);				a.setCity(city);				a.setCountry(country);				a.store();				PostalCodeHome postalHome = (PostalCodeHome) getIDOHome(PostalCode.class);				Integer countryID = (Integer) country.getPrimaryKey();				PostalCode p = null;				try {					p = postalHome.findByPostalCodeAndCountryId(postal, countryID.intValue());				}				catch (FinderException fe) {					p = null;				}				if (p != null) {					a.setPostalCode(p);				}				a.store();				try {					user.addAddress(a);				}				catch (IDOAddRelationshipException idoEx) {				}			}			//TODO: look up the users phonenumbers and email - only create new			// if doesn't exist - else update or do nothing if same data			if (tel != null && !tel.equals("")) {				PhoneHome telHome = (PhoneHome) getIDOHome(Phone.class);				Phone phone = null;				try {					phone = telHome.create();					phone.setNumber(tel);					phone.setPhoneTypeId(1);					phone.store();				}				catch (CreateException cre) {					phone = null;				}				if (phone != null) {					try {						user.addPhone(phone);					}					catch (IDOAddRelationshipException idoEx) {					}				}			}			if (mobile != null && !mobile.equals("")) {				PhoneHome mobileHome = (PhoneHome) getIDOHome(Phone.class);				Phone mob = null;				try {					mob = mobileHome.create();					mob.setNumber(mobile);					mob.setPhoneTypeId(3);					mob.store();				}				catch (CreateException cre) {					mob = null;				}				if (mob != null) {					try {						user.addPhone(mob);					}					catch (IDOAddRelationshipException idoEx) {					}				}			}			if (email != null && !email.equals("")) {				EmailHome eHome = (EmailHome) getIDOHome(Email.class);				Email emil = null;				try {					emil = eHome.create();					emil.setEmailAddress(email);					emil.store();				}				catch (CreateException cre) {					emil = null;				}				if (emil != null) {					try {						user.addEmail(emil);					}					catch (IDOAddRelationshipException idoEx) {					}				}			}			user.store();		}		catch (RemoteException rme) {		}		catch (CreateException cre) {		}		return user;	}