code: public static void checkNotNull(Object object, String errorMessage){
          try {
              Preconditions.checkNotNull(object, errorMessage);
          } catch (NullPointerException exception) {
              throw new ApplicationException(ApplicationException.Code.INVALID_INPUT, errorMessage);
          }
      }
docs: 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 com.netflix.conductor.core.execution.ApplicationException if input object is not valid