public Collection<Query> getQueries() {
org.drools.rule.Rule[] rules = pkg.getRules();
List<Query> list = new ArrayList<Query>( rules.length );
for ( org.drools.rule.Rule rule : rules ) {
if ( rule instanceof org.drools.rule.Query ) {
list.add( new RuleImpl( rule ) );
}
}
return Collections.unmodifiableCollection( list );
}