question: public static OptionList createOptionList ( Map map , Locale locale ) { OptionList optionList = new OptionList ( ) ; if ( ( map != null ) && ! map . isEmpty ( ) ) { Map reverseMap = AMFormatUtils . reverseStringMap ( map ) ; List list = AMFormatUtils . sortKeyInMap ( reverseMap , locale ) ; for ( Iterator iter = list . iterator ( ) ; iter . hasNext ( ) ; ) { String label = ( String ) iter . next ( ) ; optionList . add ( label , ( String ) reverseMap . get ( label ) ) ; } } return optionList ; }
target:  Returns a option list object that contains options for a given map of value to its localized string.