Contact contact = null;
if (user != null) {
//lets get the user info first
Collection telephoneNumbers = user.getTelephoneNumbers(null);
//change this latter
PersonNameImpl personName = (PersonNameImpl)user.getPersonName();
//tbd Collection
Collection postalAddresses =
user.getPostalAddresses();
Collection emailAddresses = user.getEmailAddresses();
Collection descriptions = getDescriptions(user, publish);
String useType = user.getType();
contact = null;
contact = objFactory.createContact();
if (personName != null) {
String contactName = personName.getFullName();
if (contactName != null)
contact.setPersonName(contactName);
} else {
return null;
}