public Optional < String > value ( String path , String key ) { return Optional . ofNullable ( paths . get ( path ) ) . flatMap ( map -> Optional . ofNullable ( map . get ( key ) ) ) ; }
Return the value with the given path and key if it exists .