try {
Reader in = new StringReader(xml);
saxParser.load(in);
return parsedManifests.toArray(new PipelinePluginManifest[parsedManifests.size()]);
} catch (KongaSaxParserException ex) {
throw new PipelinePluginManifestLoadingException("Failed to parse the plugin XML.", ex);
}
}