code: public AddressRequireCountryDataType getAddressRequireCountryDataType(DepartmentalPersonDto person) {
  
          AddressRequireCountryDataType address = AddressRequireCountryDataType.Factory.newInstance();
          if (person != null) {
  
              String street1 = person.getAddress1();
              address.setStreet1(street1);
              String street2 = person.getAddress2();
              if (street2 != null && !street2.equals("")) {
                  address.setStreet2(street2);
              }
              String city = person.getCity();
              address.setCity(city);
              String county = person.getCounty();
              if (county != null && !county.equals("")) {
                  address.setCounty(county);
              }
              String state = person.getState();
              if (state != null && !state.equals("")) {
                  address.setState(state);
              }
              String zipcode = person.getPostalCode();
              if (zipcode != null && !zipcode.equals("")) {
                  address.setZipCode(zipcode);
              }
              String country = person.getCountryCode();
              address.setCountry(CountryCodeType.Enum.forString(country));
  
          }
          return address;
      }
docs: Create AddressRequireCountryDataType from DepartmentalPerson object
  
  @param person DepartmentalPerson
  @return AddressRequireCountryDataType corresponding to the DepartmentalPerson object.