protected List<JsonObject> getAvailableConfigList(String username, String accesskey) throws IOException {
    URL myurl = new URL(this.paas.getType().restApiUrl());
    
    JsonReader reader = null;
    List<JsonObject> availableConfigList = null;
    
    HttpURLConnection con = null;
    InputStream is = null;
    InputStreamReader isr = null;
    BufferedReader br = null;
    try {
      if (username != null && accesskey != null)
        Authenticator.setDefault(new Authenticator() {
          @Override
          protected PasswordAuthentication getPasswordAuthentication() {
            return new PasswordAuthentication(username, accesskey.toCharArray());
          }
        });
      con = (HttpURLConnection) myurl.openConnection();
      is = con.getInputStream();
      isr = new InputStreamReader(is);
      br = new BufferedReader(isr);
      reader = Json.createReader(br);
      availableConfigList = reader.readArray().getValuesAs(JsonObject.class);
    } finally {
      if (reader != null)
        reader.close();
      if (br != null)
        try {
          br.close();
        } catch (IOException ioe) {
          logger.warn(ioe.getClass().getSimpleName(), ioe);
        }
      if (isr != null)
        try {
          isr.close();
        } catch (IOException ioe) {
          logger.warn(ioe.getClass().getSimpleName(), ioe);
        }
      if (is != null)
        try {
          is.close();
        } catch (IOException ioe) {
          logger.warn(ioe.getClass().getSimpleName(), ioe);
        }
      if (con != null)
        con.disconnect();
    }
    
    return availableConfigList;
  }
Gets the available config list.

@param username  the username
@param accesskey the accesskey

@return the available config list

@throws IOException Signals that an I/O exception has occurred.
KITE-Framework/src/main/java/org/webrtc/kite/config/paas/PaasHandler.java