@ SuppressWarnings ( "unchecked" ) public < Metadata > Optional < Metadata > get ( MetadataKey < Metadata > key ) { return Optional . ofNullable ( ( Metadata ) metadataMap . get ( key ) ) ; }
Get the metadata for the given metadata key .