public static <T extends Map<?, ?>> T notEmpty(final T map) {
        return notEmpty(map, DEFAULT_NOT_EMPTY_MAP_EX_MESSAGE);
    }
<p>Validate that the specified argument map is neither {@code null}
nor a size of zero (no elements); otherwise throwing an exception.

<pre>Validate.notEmpty(myMap);</pre>

<p>The message in the exception is &quot;The validated map is
empty&quot;.</p>

@param <T> the map type
@param map  the map to check, validated not null by this method
@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(Map, String, Object...)
replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/utils/Validate.java