code: protected String buildUrl(Request request)
      {
          StringBuilder sb = new StringBuilder(512);
          sb.append(baseUrl).append(request.getEntityName()).append("/");
          if(request.getPath() != null)
              sb.append(request.getPath());
  
          String queryString = buildQueryString(request);
          if(queryString.length()>0)
          {
              sb.append("?").append(queryString);
          }
  
          return sb.toString();
      }
docs: Build the URL for the specified request
  @param request the data service request
  @return The URL string