code: public AddressDataType getAddressDataType(ProposalPersonContract person) {
  
          AddressDataType addressType = AddressDataType.Factory.newInstance();
          if (person != null) {
  
              String street1 = person.getAddressLine1();
              addressType.setStreet1(street1);
              String street2 = person.getAddressLine2();
              if (street2 != null && !street2.equals("")) {                
                  addressType.setStreet2(street2);
              }
              String city = person.getCity();
              addressType.setCity(city);
  
              String state = person.getState();
              if (state != null && !state.equals("")) {
                  addressType.setState(state);
              }
              String zipcode = person.getPostalCode();
              if (zipcode != null && !zipcode.equals("")) {
                  addressType.setZipCode(zipcode);
              }
              String county = person.getCounty();
              if (county != null && !county.equals("")) {
                  addressType.setCounty(county);
              }
              String country = person.getCountryCode();
              CountryCodeType.Enum countryCode = null;
              if (country != null && !country.equals("")) {
                  countryCode = CountryCodeType.Enum.forString(country);
              }
              addressType.setCountry(countryCode);
          }
          return addressType;
      }
docs: Create AddressDataType from ProposalPerson
  
  @param person ProposalPerson
  @return AddressDataType corresponding to the ProposalPerson object.