/** @generated */
 public boolean canExecute() {
   Else container = (Else) getElementToEdit();
   if (container.getActivity() != null) {
     return false;
   }
   return true;
 }
  /** @generated */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
    Throw newElement = BPELFactory.eINSTANCE.createThrow();

    Else owner = (Else) getElementToEdit();
    owner.setActivity(newElement);

    doConfigure(newElement, monitor, info);

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