addPackage( decisionTableToPackageDescr(resource, configuration) );
this.resource = null;
}
PackageDescr decisionTableToPackageDescr(Resource resource, ResourceConfiguration configuration) throws DroolsParserException, IOException {
DecisionTableConfiguration dtableConfiguration = (DecisionTableConfiguration) configuration;
String string = DecisionTableFactory.loadFromInputStream( resource.getInputStream(), dtableConfiguration );
DrlParser parser = new DrlParser(this.configuration.getLanguageLevel());
PackageDescr pkg = parser.parse( new StringReader( string ) );
this.results.addAll( parser.getErrors() );