protected Object waitForUserResponseObject(DialogResult dialog) {
// Put this job in pause mode while waiting for user response
setPaused(true);
UserInputHelper jobUserInput = new UserInputHelper(this, dialog);
Object userInput = jobUserInput.getUserInput();
// Back to work
setPaused(false);
return userInput;
}