docs: public Definitions createAndInitResource(URI uri) {
          DroolsFactoryImpl.init();
          BpsimFactoryImpl.init();
          Resource resource = createResource(uri);
          Bpmn2Factory factory = Bpmn2Factory.eINSTANCE;
          Definitions definitions = factory.createDefinitions();
          DocumentRoot docummentRoot = factory.createDocumentRoot();
          docummentRoot.setDefinitions(definitions);
          resource.getContents().add(docummentRoot);
  
          return definitions;
      }