code: private Integer createObjectAndRegisterPrefix(String field, IndexOutput out,
        BytesRef term, Long termRef, int startPosition, BytesRef payload,
        IndexOutput outPrefix) throws IOException {
      return createObjectAndRegisterPrefix(field, out, term, termRef,
          startPosition, payload, null, null, outPrefix);
    }
docs: Creates the object and register prefix.
  
  @param field
  the field
  @param out
  the out
  @param term
  the term
  @param termRef
  the term ref
  @param startPosition
  the start position
  @param payload
  the payload
  @param outPrefix
  the out prefix
  @return the integer
  @throws IOException
  Signals that an I/O exception has occurred.