code: public static void checkNotNullOrEmpty(Map<?, ?> map, String errorMessage) {
          if(map == null || map.isEmpty()) {
              throw new ApplicationException(ApplicationException.Code.INVALID_INPUT, errorMessage);
          }
      }
docs: This method checks if the input map is valid or not.
  
  @param map input of type {@link Map}
  @param errorMessage The exception message use if the map is empty or null
  @throws com.netflix.conductor.core.execution.ApplicationException if input map is not valid