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

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

    doConfigure(newElement, monitor, info);

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