@ SuppressWarnings ( "unchecked" ) @ Nullable public < T > T getMechanismProperty ( final String key , @ Nullable final T defaultValue ) { notNull ( "key" , key ) ; T value = ( T ) mechanismProperties . get ( key . toLowerCase ( ) ) ; return ( value == null ) ? defaultValue : value ; }
Get the value of the given key to a mechanism property or defaultValue if there is no mapping .