/** * Parses an external file using LibLoader and returns the parsed result as an object of type * <code>targetClass</code>. The file is given as relative pathname (relative to the current source file). The current * helper-methods are used as parse-parameters for the external parsing. * * @param file the file to be parsed. * @param targetClass the target type of the parse operation. * @return the result, never null. * @throws ParseException if parsing the result failed for some reason. * @throws ResourceLoadingException if there was an IO error loading the resource. * @see #deriveParseParameters() * @see #performExternalParsing(String, Class, Map) */ protected Object performExternalParsing( final String file, final Class targetClass ) throws ParseException, ResourceLoadingException { return performExternalParsing( file, targetClass, deriveParseParameters() ); }