code: public List<CmsTool> getToolsForPath(CmsWorkplace wp, String baseTool, boolean includeSubtools) {
  
          List<CmsTool> toolList = new ArrayList<CmsTool>();
          String rootKey = getCurrentRoot(wp).getKey();
          Iterator<CmsTool> itTools = m_tools.elementList().iterator();
          while (itTools.hasNext()) {
              CmsTool tool = itTools.next();
              String path = tool.getHandler().getPath();
              if (resolveAdminTool(rootKey, path) != tool) {
                  continue;
              }
              if (path.equals(TOOLPATH_SEPARATOR)) {
                  continue;
              }
              // leave out everything above the base
              if (!path.startsWith(baseTool)) {
                  continue;
              }
              // filter for path
              if (baseTool.equals(TOOLPATH_SEPARATOR) || path.startsWith(baseTool + TOOLPATH_SEPARATOR)) {
                  // filter sub tree
                  if (includeSubtools || (path.indexOf(TOOLPATH_SEPARATOR, baseTool.length() + 1) < 0)) {
                      toolList.add(tool);
                  }
              }
          }
          return toolList;
      }
docs: Returns a list of all tools in the given path.<p>
  
  @param wp the workplace context
  @param baseTool the path
  @param includeSubtools if the tools in subfolders should be also returned
  
  @return a list of {@link CmsTool} objects