@Override protected XMLLoad createXMLLoad() { // DroolsPackageImpl.init(); // BpsimPackageImpl.init(); return new XMLLoadImpl(createXMLHelper()) { @Override public void load(XMLResource resource, InputStream inputStream, Map<?, ?> options) throws IOException { try { super.load(resource, inputStream, options); } catch (Exception e) { DiagnosticWrappedException error = new DiagnosticWrappedException(e); resource.getErrors().add(error); } } }; }
/** * We must override this method for having an own XMLHandler */ @Override protected XMLLoad createXMLLoad() { return new XMLLoadImpl(createXMLHelper()) { @Override protected DefaultHandler makeDefaultHandler() { return new BpmnXmlHandler(resource, helper, options); } }; }
@Override protected XMLLoad createXMLLoad() { final XMLResource planResource = this; return new PlanXMLLoadImpl(createXMLHelper(), planResource); }