public String[] getStringArrayBySeparator(String key, String separator) {
    String value = getString(key);
    if (value != null) {
      String[] strings = StringUtils.splitByWholeSeparator(value, separator);
      String[] result = new String[strings.length];
      for (int index = 0; index < strings.length; index++) {
        result[index] = trim(strings[index]);
      }
      return result;
    }
    return ArrayUtils.EMPTY_STRING_ARRAY;
  }
public String [ ] getStringArrayBySeparator ( String key , String separator ) { String value = getString ( key ) ; if ( value != null ) { String [ ] strings = StringUtils . splitByWholeSeparator ( value , separator ) ; String [ ] result = new String [ strings . length ] ; for ( int index = 0 ; index < strings . length ; index ++ ) { result [ index ] = trim ( strings [ index ] ) ; } return result ; } return ArrayUtils . EMPTY_STRING_ARRAY ; }
Value is split and trimmed.