code: public Object[] singletonArray(Object value) {
          Object[] result = new Object[1];
          result[0] = value;
          return result;
      }
docs: Specialized method that is called when a single-entry array needs to
  be constructed.
  <p>
  Default implementation simply returns equivalent of:
  <pre>
  new Object[] { value }
  </pre>