code: public static List<RelationshipInfo> convertGenRelsTupleArrayToRelationshipInfoList(RelationshipTuple[] array) {
          if (array == null) {
              return Collections.emptyList();
          }
  
          List<RelationshipInfo> list =
                  new ArrayList<RelationshipInfo>(array.length);
          for (RelationshipTuple genTuple : array) {
              list.add(convertGenRelsTupleToRelationshipInfo(genTuple));
          }
          return list;
      }
docs: Convert an array of WSDL-style {@link RelationshipTuple}s into a list of
  local {@link RelationshipInfo} objects.