public String marshall(Definitions def, String preProcessingData) throws IOException {
DroolsPackageImpl.init();
BpsimPackageImpl.init();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
JsonFactory f = new JsonFactory();
JsonGenerator generator = f.createJsonGenerator(baos, JsonEncoding.UTF8);
if(def.getRelationships() != null && def.getRelationships().size() > 0) {
// current support for single relationship
Relationship relationship = def.getRelationships().get(0);
for(ExtensionAttributeValue extattrval : relationship.getExtensionValues()) {
FeatureMap extensionElements = extattrval.getValue();