public ConfigXmlProvider(File configFile) throws XmlParsingException, FileNotFoundException {
  if (!configFile.isFile()) {
    throw new FileNotFoundException(String.format("Invalid config file: '%s' not found",configFile.getAbsolutePath()));
  }
  this.config=XmlParser.parse(configFile,new String[]{CONFIG_XSD},CONFIG_PACKAGE,ConfigType.class);
}

public ConfigXmlProvider ( File configFile ) throws XmlParsingException , FileNotFoundException { if ( ! configFile . isFile ( ) ) { throw new FileNotFoundException ( String . format ( "Invalid config file: '%s' not found" , configFile . getAbsolutePath ( ) ) ) ; } this . config = XmlParser . parse ( configFile , new String [ ] { CONFIG_XSD } , CONFIG_PACKAGE , ConfigType . class ) ; }
parses the given config . xml file to a java model . performs xsd validation .
