try {
selectedBinding.call(this.plugin, sender, selectedBinding.getParams());
} catch (InvocationTargetException e) {
if (e.getTargetException() instanceof AutoCompleteChoicesException) {
AutoCompleteChoicesException autocomplete = (AutoCompleteChoicesException) e.getTargetException();
sender.sendMessage("Autocomplete for <" + autocomplete.getArgName() + ">:");
sender.sendMessage(" " + StringUtils.implode(autocomplete.getChoices(), " "));
} else {
throw new RuntimeException(e.getTargetException());
}
} catch (Exception e) {
plugin.getLogger().severe("There is bogus command handler for " + command.getName() + " command. (Is appropriate plugin is update?)");