code: protected static JSONObject getDefaultProfile() throws Exception {
          String uri = DEFAULT_BASE_URL + BASE_PROFILE;
          try {
              JSONObject response = new JSONObject(doGet(uri, 60000));
              JSONArray profiles = response.getJSONArray("profiles");
  
              if (profiles.length() > 0) {
                  return profiles.getJSONObject(0);
              }
          } catch (Exception e) {
              // some sort of error
              throw new Exception("Could not create a proxy client");
          }
  
          return null;
      }
docs: get the default profile
  
  @return representation of default profile
  @throws Exception exception