private final static HashMap < String , String > toHashMap ( List < ? extends ResourceInfo . Property > propList ) { if ( propList == null ) return null ; HashMap < String , String > propMap = new HashMap < String , String > ( ) ; for ( ResourceInfo . Property prop : propList ) propMap . put ( prop . getName ( ) , prop . getValue ( ) ) ; return propMap ; }
Utility method that converts a list of properties to HashMap .