* @param context the command context
* @param line the original command line arguments
* @return the completions
*/
public final CompletionMatch complete(RuntimeContext context, String line) throws CommandException {
CompletionMatcher matcher = getDescriptor().completer();
Completer completer = getCompleter(context);
try {
return matcher.match(completer, line);
}
catch (CompletionException e) {
// command.log.log(Level.SEVERE, "Error during completion of line " + line, e);
return new CompletionMatch(Delimiter.EMPTY, Completion.create());
}