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

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

    doConfigure(newElement, monitor, info);

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