code: public void setBaseToolPath(CmsWorkplace wp, String baseToolPath) {
  
          // use last used base if param empty
          if (CmsStringUtil.isEmpty(baseToolPath) || baseToolPath.trim().equals("null")) {
              baseToolPath = getBaseToolPath(wp);
          }
          baseToolPath = repairPath(wp, baseToolPath);
          // set it
          CmsToolUserData userData = getUserData(wp);
          userData.setBaseTool(userData.getRootKey(), baseToolPath);
      }
docs: Sets the base tool path.<p>
  
  @param wp the workplace object
  @param baseToolPath the base tool path to set