title: Rally constructor/method format errors
body: <p>new to Rally Rest API. I am getting a couple constructor and method errors with the following code. Can you explain why these are cropping up? I've noted the type of error with the Symbol ">". thx in advance.</p>
  
  <pre><code>import com.google.gson.JsonObject;
  import com.rallydev.rest.RallyRestApi;
  import com.rallydev.rest.util.Fetch;
  import com.google.gson.JsonArray;
  import com.google.gson.JsonElement;
  import com.rallydev.rest.request.CreateRequest;
  import com.rallydev.rest.request.DeleteRequest;
  import com.rallydev.rest.request.GetRequest;
  import com.rallydev.rest.request.UpdateRequest;
  import com.rallydev.rest.response.CreateResponse;
  import com.rallydev.rest.response.DeleteResponse;
  import com.rallydev.rest.response.GetResponse;
  import com.rallydev.rest.response.UpdateResponse;
  import com.rallydev.rest.util.Ref;
  import com.rallydev.rest.request.QueryRequest;
  import com.rallydev.rest.response.QueryResponse;
  import com.rallydev.rest.util.QueryFilter;
  
  import java.io.IOException;
  import java.net.MalformedURLException;
  import java.net.URL;
  
  import com.google.gson.Gson;
  import com.google.gson.JsonSyntaxException;
  import java.net.URISyntaxException;
  import java.net.URI;
  
  public class RallyUpdate {
       public static void main(String[] args) throws URISyntaxException, IOException {
  
  
           RallyRestApi restApi = new RallyRestApi(new URI("https://rally1.rallydev.com"),"jsmith@company.com", "password");
           restApi.setWsapiVersion("1.38");
           restApi.setApplicationName("Add Test Case Result");
  
           QueryRequest userRequest = new QueryRequest("User");
           **&gt;constructor - Fetch&gt;**userRequest.setFetch(new Fetch("UserName", "Subscription", "Joe Smith"));
           userRequest.setQueryFilter(new QueryFilter("UserName", "=", "jsmith@company.com"));
           QueryResponse userQueryResponse = restApi.query(userRequest);
           JsonArray userQueryResults = userQueryResponse.getResults();
           JsonElement userQueryElement = userQueryResults.get(0);
           JsonObject userQueryObject = userQueryElement.getAsJsonObject();
           String userRef = userQueryObject.get("_ref").toString();
  
           if (userQueryResponse.wasSuccessful()) {
               System.out.println("User Found"); 
           } else {
               System.out.println("User not found");
           }
           System.out.println("Creating a test case result...");
  
           QueryRequest testCaseRequest = new QueryRequest("TestCase");
           **&gt;constructor - Fetch&gt;**testCaseRequest.setFetch(new Fetch("FormattedID","Rally REST API Enhancment Object ID to Formatted ID"));
           testCaseRequest.setQueryFilter(new QueryFilter("FormattedID", "=", "TCxxx"));
           QueryResponse testCaseQueryResponse = restApi.query(testCaseRequest);
           JsonObject testCaseJsonObject = testCaseQueryResponse.getResults().get(0).getAsJsonObject();
           String testCaseRef = testCaseQueryResponse.getResults().get(0).getAsJsonObject().get("_ref").getAsString();
           if (testCaseQueryResponse.wasSuccessful()) {
               System.out.println("Test Case Found"); 
           } else {
               System.out.println("Test Case not found");
           }
  
  
           try {
                  //Add a Test Case Result
                   System.out.println("Creating TestCase Result...");
                   JsonObject newTestCaseResult = new JsonObject();
                   newTestCaseResult.addProperty("Verdict", "Pass");
                   newTestCaseResult.addProperty("Notes", "Test");
                   newTestCaseResult.addProperty("Build", "2014.03.31.0020101");
                   newTestCaseResult.addProperty("Tester", "Joe Smith");
                   newTestCaseResult.addProperty("TestCase", "/testcae/17080774xxx");
                   System.out.println("added testcase info");
  
                   CreateRequest createRequest = new CreateRequest("newtestcaseresult", newTestCaseResult);
                   CreateResponse createResponse = restApi.create(createRequest);  
  
                   if (createResponse.wasSuccessful()) {
                   **&gt;method&gt;**System.out.println(String.format("Created %s", createResponse.getObject().get("_ref").getAsString()));          
  
                       //Read Test Case
                       String ref = Ref.getRelativeRef(createResponse.getObject().get("_ref").getAsString());
                       **&gt;method&gt;**System.out.println(String.format("\nReading Test Case Result %s...", ref));
                       GetRequest getRequest = new GetRequest(ref);
                       **&gt;method&gt;**getRequest.setFetch(new Fetch("Date", "Verdict"));
                       GetResponse getResponse = restApi.get(getRequest);
                       JsonObject obj = getResponse.getObject();
                       **&gt;method&gt;**System.out.println(String.format("Read Test Case Result. Date = %s, Verdict = %s",
                               obj.get("Date").getAsString(), obj.get("Verdict").getAsString())); 
  
                   } else {
                       String[] createErrors;
                       createErrors = createResponse.getErrors();
                       System.out.println("Error occurred creating Test Case: ");
                       for (int i=0; i&lt;createErrors.length;i++) {
                           System.out.println(createErrors[i]);
                      System.out.println(createErrors[i]);                 
                   }
               }
                   }finally {
               //Release all resources
               restApi.close();
           }   
  
       } 
  
  }
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>Row 40 : The constructor Fetch(String, String, String, String) is undefined
  Row 53: The constructor Fetch(String, String) is undefined
  Row 83: The method format(String, Object[]) in the type String is not applicable for the arguments (String, String)
  Row 90: The method format(String, Object[]) in the type String is not applicable for the arguments (String, String)
  Row 93: The constructor Fetch(String, String) is undefined
  Row 98: The method format(Locale, String, Object[]) in the type String is not applicable for the arguments (String, String, String)
  </code></pre>