code: public VPackSlice serialize(final Object entity, final SerializeOptions options) throws VPackParserException {
  		Type type = options.getType();
  		if (type == null) {
  			type = entity.getClass();
  		}
  		if (type == VPackSlice.class) {
  			return (VPackSlice) entity;
  		}
  		final VPackBuilder builder = new VPackBuilder(builderOptions);
  		serialize(null, entity, type, builder, new HashMap<String, Object>(options.getAdditionalFields()));
  		return builder.slice();
  	}
docs: Serialize a given Object to VelocyPack
  
  @param entity
  The Object to serialize.
  @param options
  Additional options
  @return the serialized VelocyPack
  @throws VPackParserException