class CountryTransformer {

    CountryDTO toDto(Country country) {
        CountryDTO result = new CountryDTO();
        if (null != country) {
            result.setCode( country.getCode() );
            result.setName( country.getName() );
        }

        return result;
    }

}