code: public static Set<DatastreamInfo> convertGenDatastreamArrayToDatastreamInfoSet(Datastream[] genDss) {
          Set<DatastreamInfo> set = new HashSet<DatastreamInfo>(genDss.length);
          for (Datastream ds : genDss) {
              set.add(convertGenDatastreamDefToDatastreamInfo(ds));
          }
          return set;
      }
docs: Convert an array of WSDL-style {@link Datastream}s into a {@link Set} of
  local {@link DatastreamInfo} objects.