*
* @throws JitterbitPluginException
* if the requested parser could not be created.
*/
static InputXmlParser getParser(File inputXml) throws JitterbitPluginException {
Version specVersion = getPipelinePluginSpecificationVersion(inputXml);
if ((specVersion.getMajorVersion() == 1) && (specVersion.getMinorVersion() == 0)) {
return new InputXmlParserImpl_v10(specVersion);
}
throw new JitterbitPluginException("Cannot handle input XML for version " + specVersion
+ " of the Jitterbit Pipeline Plugin Specification.");
}