private Resource expand(InputStream is, RuleParameters ruleParameters) {
ObjectDataCompiler converter = new ObjectDataCompiler();
Collection<RuleParameters> parameters = new ArrayList<RuleParameters>();
parameters.add(ruleParameters);
String drl = converter.compile(parameters, is);
logger.trace("\n------------\n{}\n------------", drl);
Reader rdr = new StringReader(drl);
return ResourceFactory.newReaderResource(rdr);
}