public static Object getAsObject(byte[] byteArray) throws IOException, ClassNotFoundException {
        ByteArrayInputStream baip = new ByteArrayInputStream(byteArray);
        ObjectInputStream ois = new ObjectInputStream(baip);
        return ois.readObject();
    }
Contains utility methods for the error handler.
modules/siddhi-core/src/main/java/io/siddhi/core/util/error/handler/util/ErrorHandlerUtils.java