PackageAssembler asm = new PackageAssembler(item,
packageAssemblerConfiguration);
asm.compile();
if (asm.hasErrors()) {
BuilderResult result = new BuilderResult();
BuilderResultHelper builderResultHelper = new BuilderResultHelper();
result.setLines(builderResultHelper.generateBuilderResults(asm.getErrors()));
return result;
}
try {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
ObjectOutput out = new DroolsObjectOutputStream(bout);