class RestUtils {

    public static void checkStringParam(@Nullable String param, String errorMessage) {
        if (StringUtils.isBlank(param)) {
            throw ErrorUtils.sendError(errorMessage, Response.Status.BAD_REQUEST);
        }
    }

}