public static String getOriginalPayloadString(Object originalPayloadAsObject) {
        if (originalPayloadAsObject != null) {
            return originalPayloadAsObject.toString();
        }
        return null;
    }
Contains utility methods for the error handler.
modules/siddhi-core/src/main/java/io/siddhi/core/util/error/handler/util/ErrorHandlerUtils.java