private static Map < URI , String > getOrAdd ( Map < String , Map < URI , String > > map , String key ) { Map < URI , String > value = map . get ( key ) ; if ( value == null ) { map . put ( key , value = new HashMap <> ( ) ) ; } return value ; }
Returns the element with the specified key from the map . Creates adds and returns a new element if no match was found .