return new IDiagramUnmarshaller() {
public String parseModel(String xmlModel, IDiagramProfile profile, String preProcessingData) {
Bpmn2JsonMarshaller marshaller = new Bpmn2JsonMarshaller();
marshaller.setProfile(profile);
try {
return marshaller.marshall(getDefinitions(xmlModel), preProcessingData);
} catch (Exception e) {
_logger.error(e.getMessage(), e);
}
return "";
}