code: public static byte[] serialize(Object object) {
      	try {
  			return serializer.serialize(object);
  		} catch (IOException e) {
  			throw new RuntimeException(e);
  		}
      }
docs: 序列化
  
  @param object 需要序列化的对象
  @return