code: public boolean hasModuleResourcesWithUndefinedSite() {
  
          if (getSite() == null) {
              for (String modRes : getResources()) {
                  if (!CmsStringUtil.isPrefixPath("/system/", modRes)
                      && !OpenCms.getSiteManager().startsWithShared(modRes)) {
                      return true;
                  }
  
              }
          }
          return false;
      }
docs: Determines if the module haas resources whose site is undefined.<p>
  
  @return true if there are module resources with an undefined site