}
@Override
public void loadFormTemplate(final FormRepresentation form, String language) {
final String url = URLBuilder.loadFormTemplateURL(this.contextPath, language);
Resource resource = new Resource(url);
try {
String xml = helper.asXml(form, null);
resource.post().xml(XMLParser.parse(xml)).send(new SimpleTextCallback(i18n.CouldntExportTemplate()) {
@Override
public void onSuccess(Method method, String response) {
String fileName = helper.getFileName(response);
FormPanel auxiliarForm = new FormPanel();
auxiliarForm.setMethod(FormPanel.METHOD_GET);