public Addresses(Addresses addresses)
 {
     if (addresses == null)
     {
         return;
     }
     Address = new List<Address>();
     foreach (Address addr in addresses.Address)
     {
         Address.Add(new Address(addr));
     }
 }
 public Account(Account clonedAccount)
 {
     if (clonedAccount == null)
     {
         return;
     }
     CustomAttribute = clonedAccount.CustomAttribute;
     Id = clonedAccount.Id;
     Name = clonedAccount.Name;
     Number = clonedAccount.Number;
     if (clonedAccount.Addresses != null) {
         Addresses = new Addresses(clonedAccount.Addresses);
     }
     if (clonedAccount.PhoneNumbers != null)
     {
         PhoneNumbers = new PhoneNumbers(clonedAccount.PhoneNumbers);
     }
     if (clonedAccount.EmailAddresses != null)
     {
         EmailAddresses = new EmailAddresses(clonedAccount.EmailAddresses);
     }
 }