public synchronized Map < String , Object > getConfiguration ( String key ) { return Optional . ofNullable ( inventory . get ( key ) ) . flatMap ( v -> v . getConfiguration ( ) ) . map ( v -> v . getMap ( ) ) . orElse ( null ) ; }
Gets a configuration .