docs: private static JSONArray parseOutgoings(ArrayList<Shape> outgoings) throws JSONException {
          if (outgoings != null) {
              JSONArray outgoingsArray = new JSONArray();
  
              for (Shape outgoing : outgoings) {
                  JSONObject outgoingObject = new JSONObject();
  
                  outgoingObject.put("resourceId",
                                     outgoing.getResourceId().toString());
                  outgoingsArray.put(outgoingObject);
              }
  
              return outgoingsArray;
          }
  
          return new JSONArray();
      }