@Override
    public void process(Request request, TreeNode<Resource> resultNode, String href) {
      StringBuilder sb = new StringBuilder();
      String[] toks = href.split("/");

      for (int i = 0; i < toks.length; ++i) {
        String s = toks[i];
        sb.append(s).append('/');
        if ("clusters".equals(s)) {
          sb.append(toks[i + 1]).append('/');
          break;
        }
      }

      Object scheduleId = resultNode.getObject().getPropertyValue(RequestResourceProvider.REQUEST_SOURCE_SCHEDULE_ID);
      if (scheduleId != null) {
        sb.append("request_schedules/").append(scheduleId);
        resultNode.getObject().setProperty(RequestResourceProvider.REQUEST_SOURCE_SCHEDULE_HREF, sb.toString());
      }
    }
Get cluster name
Remove query paramter string if there is any

@param token
@return String
ambari-server/src/main/java/org/apache/ambari/server/api/resources/RequestResourceDefinition.java