// create design data using xml
HttpCallCommand createDesignCommand =
commandFactory.createPlainHttpCallCommand(UPLOAD_URL, HttpMethod.POST, null);
createDesignCommand.setInput(getXMLData(UPLOAD_XML));
createDesignCommand.setApiKeyProtected(true);
createDesignCommand.execute();
if (createDesignCommand.getStatus() >= 400) {
throw new Exception("Could not create design xml!");
}
log.info("XML location is: " + createDesignCommand.getUrl());