/** * Returns a parser using the given configuration * * @param configuration */ protected Parser getParser(Configuration configuration) { Parser parser = new Parser(configuration); // spring injection would have been preferred, but it changes the order in which PPIO // are listed, which in turn chances the behavior of WPS (e.g., default mimeType) parser.setEntityResolver(getResolveProvider().getEntityResolver()); return parser; }