code: protected int getResourceTypeId() {
  
          if (CmsStringUtil.isNotEmpty(getResourceType())) {
              try {
                  return OpenCms.getResourceManager().getResourceType(getResourceType()).getTypeId();
              } catch (CmsException e) {
                  // ignore, no valid resource type ID found
              }
          }
          return -1;
      }
docs: Returns the resource type ID of the XML contents to process.<p>
  
  @return the resource type ID of the XML contents to process