code: public static byte[] serializeAndEncodeObject(final CipherExecutor cipher,
                                                    final Serializable object) {
          return serializeAndEncodeObject(cipher, object, ArrayUtils.EMPTY_OBJECT_ARRAY);
      }
docs: Serialize and encode object byte [ ].
  
  @param cipher the cipher
  @param object the object
  @return the byte []