public static Dictionary < String , String > convertInitParams ( final WebAppInitParam [ ] initParams ) { if ( initParams == null || initParams . length == 0 ) { return null ; } Hashtable < String , String > dictionary = new Hashtable <> ( ) ; for ( WebAppInitParam initParam : initParams ) { dictionary . put ( initParam . getParamName ( ) , initParam . getParamValue ( ) ) ; } return dictionary ; }
Converts an array of init params to a Dictionary .