throw new IllegalArgumentException("Invalid spreadsheet stream.", e);
}
//compile the drls
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(new ByteArrayResource(basePricingDRL.getBytes()), ResourceType.DRL);
kbuilder.add(new ByteArrayResource(promotionalPricingDRL.getBytes()), ResourceType.DRL);
//compilation errors?
if (kbuilder.hasErrors()) {
System.out.println("Error compiling resources:");
Iterator<KnowledgeBuilderError> errors = kbuilder.getErrors().iterator();