code: public List<String> getLockedResources() {
  
          if (m_lockedResources == null) {
              // collect my locked resources
              Set<String> lockedResources = new HashSet<String>();
              Iterator<String> i = getResourceList().iterator();
              while (i.hasNext()) {
                  String resName = i.next();
                  try {
                      lockedResources.addAll(getCms().getLockedResources(resName, getNonBlockingFilter()));
                  } catch (CmsException e) {
                      // error reading a resource, should usually never happen
                      if (LOG.isErrorEnabled()) {
                          LOG.error(e.getLocalizedMessage(getLocale()), e);
                      }
                  }
                  if (Boolean.valueOf(getParamIncluderelated()).booleanValue()) {
                      addLockedRelatedResources(resName, getNonBlockingFilter(), lockedResources);
                  }
              }
              // get blocking resources needs the locked resources
              m_lockedResources = new ArrayList<String>(lockedResources);
              lockedResources.addAll(getBlockingLockedResources());
              // create the locked resources list again, with the blocking locked resources
              m_lockedResources = new ArrayList<String>(lockedResources);
              Collections.sort(m_lockedResources);
          }
          return m_lockedResources;
      }
docs: Returns all the locked Resources.<p>
  
  @return all the locked Resources