@Override
public Object executeFunction(CommandLine line) {
// Poll until finished
if (line.hasOption(Constants.OPT_SYNCHRONOUS) && line.hasOption(Constants.OPT_JID)) {
long pollTimeout = getPollTimeout();
SubmissionCallback callback = new SubmissionCallback() {
@Override
public void submitted(MSubmission submission) {
SubmissionDisplayer.displayHeader(submission);
SubmissionDisplayer.displayProgress(submission);
}