code: public static <T extends Map<?, ?>> T notEmpty(final T map, final String message, final Object... values) {
          if (map == null) {
              throw new NullPointerException(StringUtils.simpleFormat(message, values));
          }
          if (map.isEmpty()) {
              throw new IllegalArgumentException(StringUtils.simpleFormat(message, values));
          }
          return map;
      }
docs: <p>Validate that the specified argument map is neither {@code null}
  nor a size of zero (no elements); otherwise throwing an exception
  with the specified message.
  
  <pre>Validate.notEmpty(myMap, "The map must not be empty");</pre>
  
  @param <T> the map type
  @param map  the map to check, validated not null by this method
  @param message  the {@link String#format(String, Object...)} exception message if invalid, not null
  @param values  the optional values for the formatted exception message, null array not recommended
  @return the validated map (never {@code null} method for chaining)
  @throws NullPointerException if the map is {@code null}
  @throws IllegalArgumentException if the map is empty
  @see #notEmpty(Object[])