@ SuppressWarnings ( "unchecked" ) public synchronized static < T extends TunableConstants > T get ( Properties p , Class < T > c ) { T cfg = getDefault ( c ) ; if ( p != null && p . containsKey ( TUNE_MARKER ) && p . containsKey ( cfg . getClass ( ) . getName ( ) + ".tuning" ) ) { cfg = ( T ) cfg . clone ( ) ; apply ( p , cfg ) ; } return cfg ; }
Provide tuning object with initialized information from the properties file .