code: protected static void initialize(CmsObject adminCms, byte[] typeSchemaBytes) {
  
          // create the resolver to register as event listener
          CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(adminCms);
  
          // register this object as event listener
          OpenCms.addCmsEventListener(
              resolver,
              new int[] {
                  I_CmsEventListener.EVENT_CLEAR_CACHES,
                  I_CmsEventListener.EVENT_PUBLISH_PROJECT,
                  I_CmsEventListener.EVENT_RESOURCE_MODIFIED,
                  I_CmsEventListener.EVENT_RESOURCE_MOVED,
                  I_CmsEventListener.EVENT_RESOURCE_DELETED});
  
          // cache the base widget type XML schema definitions
          cacheSystemId(CmsXmlContentDefinition.XSD_INCLUDE_OPENCMS, typeSchemaBytes);
      }
docs: Initialize the OpenCms XML entity resolver.<p>
  
  @param adminCms an initialized OpenCms user context with "Administrator" role permissions
  @param typeSchemaBytes the base widget type XML schema definitions
  
  @see CmsXmlContentTypeManager#initialize(CmsObject)