code: public static <T> List<Option<T>> createOptions(Collection<T> domainObjects) { 
          List<Option<T>> options = new ArrayList<Option<T>>();
      
          for (T value : domainObjects) {
              String id = String.valueOf(getId(value));
              options.add(new Option<T>(id, value));
          }
      
          return options;
      }
docs: Factory method to create a list of Options from a list of
  DomainObjects. It is expected that the DomainObjects has