public String[] splitOptions(final String optionAsString){
  return optionAsString == null ? ArrayUtils.EMPTY_STRING_ARRAY : optionAsString.split("(?ims),(?![^\\[\\]]*\\])");
}

public String [ ] splitOptions ( final String optionAsString ) { return optionAsString == null ? ArrayUtils . EMPTY_STRING_ARRAY : optionAsString . split ( "(?ims),(?![^\\[\\]]*\\])" ) ; }
split multiple options into an array of options .
