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