}
PackageDescr scoreCardToPackageDescr(Resource resource,
ResourceConfiguration configuration) throws DroolsParserException,
IOException {
ScoreCardConfiguration scardConfiguration = (ScoreCardConfiguration) configuration;
String string = ScoreCardFactory.loadFromInputStream( resource.getInputStream(), scardConfiguration );
DrlParser parser = new DrlParser( this.configuration.getLanguageLevel() );
PackageDescr pkg = parser.parse( resource, new StringReader( string ) );
this.results.addAll( parser.getErrors() );