@Autowired
protected UrlService urlService;
public ContactForm buildContactForm(final RequestData requestData) throws Exception {
final ContactForm contactUsForm = new ContactForm();
String languageCode = requestData.getMarketAreaLocalization().getCode();
if(languageCode.equals("en")) {
contactUsForm.setCountry("US");
} else if(languageCode.equals("fr")) {
contactUsForm.setCountry("FR");
} else if(languageCode.equals("de")) {
contactUsForm.setCountry("DE");
} else if(languageCode.equals("es")) {
contactUsForm.setCountry("ES");
} else if(languageCode.equals("it")) {
contactUsForm.setCountry("IT");
} else if(languageCode.equals("nl")) {
contactUsForm.setCountry("NL");
} else if(languageCode.equals("pt")) {
contactUsForm.setCountry("PT");
}
return contactUsForm;
}