public ContactWS(ContactDTOEx other) {
    setId(other.getId());
    setOrganizationName(other.getOrganizationName());
    setAddress1(other.getAddress1());
    setAddress2(other.getAddress2());
    setCity(other.getCity());
    setStateProvince(other.getStateProvince());
    setPostalCode(other.getPostalCode());
    setCountryCode(other.getCountryCode());
    setLastName(other.getLastName());
    setFirstName(other.getFirstName());
    setInitial(other.getInitial());
    setTitle(other.getTitle());
    setPhoneCountryCode(other.getPhoneCountryCode());
    setPhoneAreaCode(other.getPhoneAreaCode());
    setPhoneNumber(other.getPhoneNumber());
    setFaxCountryCode(other.getFaxCountryCode());
    setFaxAreaCode(other.getFaxAreaCode());
    setFaxNumber(other.getFaxNumber());
    setEmail(other.getEmail());
    setCreateDate(other.getCreateDate());
    setDeleted(other.getDeleted());
    setInclude(other.getInclude() != null && other.getInclude().equals(1));
    setType(other.getType());
    int index = 0;

    // set Contact Type Name
    if (null != other.getContactMap() && null != other.getContactMap().getContactType()) {
      setContactTypeId(other.getContactMap().getContactType().getId());
    }
  }
 public ContactWS(ContactWS other) {
   setId(other.getId());
   setOrganizationName(other.getOrganizationName());
   setAddress1(other.getAddress1());
   setAddress2(other.getAddress2());
   setCity(other.getCity());
   setStateProvince(other.getStateProvince());
   setPostalCode(other.getPostalCode());
   setCountryCode(other.getCountryCode());
   setLastName(other.getLastName());
   setFirstName(other.getFirstName());
   setInitial(other.getInitial());
   setTitle(other.getTitle());
   setPhoneCountryCode(other.getPhoneCountryCode());
   setPhoneAreaCode(other.getPhoneAreaCode());
   setPhoneNumber(other.getPhoneNumber());
   setFaxCountryCode(other.getFaxCountryCode());
   setFaxAreaCode(other.getFaxAreaCode());
   setFaxNumber(other.getFaxNumber());
   setEmail(other.getEmail());
   setCreateDate(other.getCreateDate());
   setDeleted(other.getDeleted());
   setInclude(other.getInclude());
 }
 /**
  * To Create Customer Contact
  *
  * @param email
  * @return
  */
 public static ContactWS createCustomerContact(String email) {
   ContactWS contact = new ContactWS();
   contact.setEmail(email);
   // rest of the fields are not mandatory
   return contact;
 }