public static void present ( final Map < ? , ? > map , final Object key , final String name ) { if ( null == map . get ( key ) ) { throw new IllegalStateException ( name + " not found in map for key: " + key ) ; } }
Verify that a map contains an entry for a given key .