@Override protected void marshallNode(FlowNode node, Map<String, Object> properties, String stencil, BPMNPlane plane, JsonGenerator generator, float xOffset, float yOffset) throws IOException { String trueStencil = stencil; if ("ReusableSubprocess".equals(stencil)) { trueStencil = isCase(node) ? "CaseReusableSubprocess" : "ProcessReusableSubprocess"; } doMarshallNode(node, properties, trueStencil, plane, generator, xOffset, yOffset); }