code: String getPreferredMediaType(Document testRunArgs) {
      	String mediaType = "application/rdf+xml";
          NodeList entries = testRunArgs.getElementsByTagName("entry");
          for (int i = 0; i < entries.getLength(); i++) {
              Element entry = (Element) entries.item(i);
              if (entry.getAttribute("key").equals("acceptMediaType")) {
              	if(entry.getTextContent().trim().equalsIgnoreCase("application/xml")){
                  mediaType = "application/xml";
              	} else if(entry.getTextContent().trim().equalsIgnoreCase("application/zip")){
                      mediaType = "application/zip";
                  	} else if(entry.getTextContent().trim().equalsIgnoreCase("application/rdf+earl")){
                          mediaType = "application/rdf+earl";
                      	}
              }
          }
          return mediaType;
      }
docs: Gets the preferred media type for the test results as indicated by the
  value of the "acceptMediaType" key in the given properties file. The
  default value is "application/xml".
  
  @param testRunArgs
  An XML properties file containing test run arguments.
  @return The preferred media type.