productCommentForm.setProductCode(productMarketing.getCode());
return productCommentForm;
}
public RetailerContactForm buildRetailerContactForm(final RequestData requestData, final Retailer retailer) throws Exception {
final RetailerContactForm retailerContactForm = new RetailerContactForm();
retailerContactForm.setRetailerCode(retailer.getCode());
String languageCode = requestData.getMarketAreaLocalization().getCode();
if(languageCode.equals("en")) {
retailerContactForm.setCountry("US");
} else if(languageCode.equals("fr")) {
retailerContactForm.setCountry("FR");
} else if(languageCode.equals("de")) {
retailerContactForm.setCountry("DE");
} else if(languageCode.equals("es")) {
retailerContactForm.setCountry("ES");
} else if(languageCode.equals("it")) {
retailerContactForm.setCountry("IT");
} else if(languageCode.equals("nl")) {
retailerContactForm.setCountry("NL");
} else if(languageCode.equals("pt")) {
retailerContactForm.setCountry("PT");
}
return retailerContactForm;
}