code: public static String[] getNames(Status[] status) {
      if (status == null) {
        return null;
      }
      String[] statusNames = new String[status.length];
      for (int i = 0; i < statusNames.length; i++) {
        statusNames[i] = status[i].getName();
      }
      return statusNames;
    }
docs: Converts an array of <code>Status</code> to a <code>String</code>
  array containing the names of the given status.
  @param status the status to convert
  @return an array containing the status names or <code>null</code>
  if the argument is <code>null</code>