public static void requireNonNull(final Object object, String message) throws BadRequestException {
        if (object == null) {
            throw badRequest(message);
        }
    }
Used to validate a request argument and throw a {@link BadRequestException} if it is null
stroom-util/src/main/java/stroom/util/rest/RestUtil.java