code: public synchronized void initParams(CmsToolDialog wp) {
  
          setCurrentRoot(wp, wp.getParamRoot());
          setCurrentToolPath(wp, wp.getParamPath());
          setBaseToolPath(wp, wp.getParamBase());
  
          // if the current tool path is not under the current root, set the current root as the current tool
          if (!getCurrentToolPath(wp).startsWith(getBaseToolPath(wp))) {
              setCurrentToolPath(wp, getBaseToolPath(wp));
          }
          wp.setParamPath(getCurrentToolPath(wp));
          wp.setParamBase(getBaseToolPath(wp));
          wp.setParamRoot(getCurrentRoot(wp).getKey());
      }
docs: This method initializes the tool manager for the current user.<p>
  
  @param wp the jsp page coming from