public static void checkNotNull(Object object, String errorMessage) {
        if (object == null) {
            throw new NullPointerException(errorMessage);
        }
    }
This method checks if the object is null or empty.

@param object input of type {@link Object}.
@param errorMessage The exception message use if the object is empty or null.
@throws NullPointerException if input object is not valid.
core/src/main/java/com/netflix/conductor/core/utils/Utils.java