class Bpmn2Resource extends XMLResourceImpl {

    Map<Object, Object> createSaveOptions() {
        final Map<Object, Object> options = createDefaultOptions();
        options.put(XMLResource.OPTION_DECLARE_XML, true);
        options.put(XMLResource.OPTION_ELEMENT_HANDLER, new ElementHandler(true));
        options.put(XMLResource.OPTION_USE_CACHED_LOOKUP_TABLE, new ArrayList<>());
        return options;
    }

    protected  Bpmn2Resource(URI uri);

}