/** @generated NOT */
 public boolean canExecute() {
   LogicNode container = (LogicNode) getElementToEdit();
   if (container.getMainOutput() != null) {
     return false;
   }
   return true;
 }
  /** @generated */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
    OperatorOutput newElement = Neuro4jFactory.eINSTANCE.createOperatorOutput();

    ActionNode owner = (ActionNode) getElementToEdit();
    owner.getOutput().add(newElement);
    LogicNode childHolder = (LogicNode) getElementToEdit();
    childHolder.setMainOutput(newElement);

    doConfigure(newElement, monitor, info);

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