code: protected List<CmsResource> getInternalResources(CmsObject cms, Map<String, String> params) throws CmsException {
  
          synchronized (this) {
              if (m_resources == null) {
                  m_resources = getResources(cms, params);
                  Iterator<CmsResource> it = m_resources.iterator();
                  while (it.hasNext()) {
                      CmsResource resource = it.next();
                      m_resCache.put(resource.getStructureId().toString(), resource);
                  }
              }
          }
          return m_resources;
      }
docs: Wrapper method for caching the result of {@link #getResources(CmsObject, Map)}.<p>
  
  @param cms the cms object
  @param params the parameter map
  
  @return the result of {@link #getResources(CmsObject, Map)}
  
  @throws CmsException if something goes wrong