/** @generated */
 public boolean canExecute() {
   ScriptMediator container = (ScriptMediator) getElementToEdit();
   if (container.getOutputConnector() != null) {
     return false;
   }
   return true;
 }
  /** @generated */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
    ScriptMediatorOutputConnector newElement =
        EsbFactory.eINSTANCE.createScriptMediatorOutputConnector();

    ScriptMediator owner = (ScriptMediator) getElementToEdit();
    owner.setOutputConnector(newElement);

    doConfigure(newElement, monitor, info);

    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);
  }