public List < String > getCustomBundlePropertyAsList ( String bundleName , String key ) { List < String > propertiesList = new ArrayList <> ( ) ; StringTokenizer tk = new StringTokenizer ( getCustomBundleProperty ( bundleName , key , "" ) , "," ) ; while ( tk . hasMoreTokens ( ) ) propertiesList . add ( tk . nextToken ( ) . trim ( ) ) ; return propertiesList ; }
Returns as a list the comma separated values of a property