//validate
XmlOptions xmlOptions = new XmlOptions();
xmlOptions.setLoadLineNumbers();
Collection errors = new ArrayList();
xmlOptions.setErrorListener(errors);
if (!plan.validate(xmlOptions)) {
return new FailedProgressObject(CommandType.DISTRIBUTE, "Invalid deployment plan: errors: " + errors);
}
} catch (org.apache.xmlbeans.XmlException e) {
return new FailedProgressObject(CommandType.DISTRIBUTE, "Could not parse deployment plan");
} catch (java.io.IOException e) {