code: protected static String getSingleParam(List<String> list) {
          if (list != null && list.size() == 1) {
              return list.get(0);
          }
          return null;
      }
docs: Return a single parameter value.
  
  @param list a {@link java.util.List} object.
  @return a {@link java.lang.String} object.