code: public boolean addRelatedObject(String objectType, String id, String content)
      {
          Map<String, Object> container = new HashMap<String, Object>();
          
          if (objectType != null)
          {
              container.put("objectType", objectType);
          }
          else
          {
              return false;
          }
          if (id != null)
          {
              container.put("id", id);
          }
          if (content != null)
          {
              container.put("content", content);
          }
  
          related.add(container);
          return true;
      }
docs: Add a related object to this activity
  
  @param objectType The type of the object (required)
  @param id Id of the ojbect
  @param content String describing the content of the object
  @return True if added, false if not (due to missing required fields)