/* (non-Javadoc)
@see com.tvd12.ezyfox.core.command.BaseCommand#execute()
426524
@SuppressWarnings("unchecked")
    @Override
    public Boolean execute() {
        api.leaveRoom(CommandUtil.getSfsUser(user, api), 
                CommandUtil.getSfsRoom(room, extension), 
                fireClientEvent, fireServerEvent);
        return Boolean.TRUE;
    }
559705
public final void execute()
  {
    _log.debug( _sqlString );

    CallableStatement lCallableStatement = null;

    try
    {
      lCallableStatement = _callableStatementProvider.createCallableStatement( _sqlString );

      useCallableStatement( lCallableStatement );
    }
    catch( SQLException e )
    {
      _log.debug( e + ": " + _sqlString, e );

      throw ExceptionManager.createException( e, _sqlString );
    }
    finally
    {
      if( lCallableStatement != null )
      {
        try
        {
          lCallableStatement.close();
        }
        catch( SQLException e )
        {
          _log.debug( e, e );

          throw ExceptionManager.createException( e, _sqlString );
        }
      }
    }
  }
704307
@SuppressWarnings("unchecked")
        public static void executeCommand(String[] args) throws IOException {

            OptionParser parser = getParser();

            // declare parameters
            List<String> metaKeys = null;
            String url = null;

            // parse command-line input
            args = AdminToolUtils.copyArrayAddFirst(args, "--" + OPT_HEAD_META_CHECK);
            OptionSet options = parser.parse(args);
            if(options.has(AdminParserUtils.OPT_HELP)) {
                printHelp(System.out);
                return;
            }

            // check required options and/or conflicting options
            AdminParserUtils.checkRequired(options, OPT_HEAD_META_CHECK);
            AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_URL);

            // load parameters
            metaKeys = (List<String>) options.valuesOf(OPT_HEAD_META_CHECK);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);


            // execute command
            if(metaKeys.size() == 0
               || (metaKeys.size() == 1 && metaKeys.get(0).equals(METAKEY_ALL))) {
                metaKeys = Lists.newArrayList();
                metaKeys.add(MetadataStore.CLUSTER_KEY);
                metaKeys.add(MetadataStore.STORES_KEY);
                metaKeys.add(MetadataStore.SERVER_STATE_KEY);
            }

            AdminClient adminClient = AdminToolUtils.getAdminClient(url);

            doMetaCheck(adminClient, metaKeys);
        }
1029387
public void execute(InputStream input, OutputStream output) throws IOException {
        execute(input, output, null);
    }
600596
public Process execute()
    throws IOException
    {
        List<String>  list = createCommandList();
        if (_LOG_.isDebugEnabled()) {
            _LOG_.debug( "executing command: " + list );
        }

        Process  proc = Runtime.getRuntime().exec( list.toArray( new String[0] ) );
                                             //@throws IOException
                                             //@throws SecurityException
                                             //@throws IndexOutOfBoundsException, NullPointerException

        return proc;
    }
106181
@SuppressWarnings("unchecked")
    @Override
    public Boolean execute() {
        try {
            api.changeRoomName(CommandUtil.getSfsUser(owner, api), 
                    CommandUtil.getSfsRoom(targetRoom, extension), 
                    roomName);
        } catch (SFSRoomException e) {
            throw new IllegalStateException(e);
        }
        return Boolean.TRUE;
    }
1122184
@Override
	protected boolean execute() {
		// Disabled triggers are always false
		if ((trigger instanceof Disableable) && ((Disableable) trigger).isDisabled()
				&& !(trigger instanceof Input && ((Input) trigger).isReadOnly())) {
			return false;
		}

		final Object triggerValue = getTriggerValue(null);
		final Object compareValue = getCompareValue();

		return executeCompare(triggerValue, compareValue);
	}
1319888
@Override
    public void execute(final ReplaceInList command) {
        referenceKeeper.cleanReferenceCache();
        if (couldBeExecuted(command)) {
            executor.execute(command);
        } else {
            keepReferenceIfObservable(command.getValue());
        }
    }
683547
@SuppressWarnings("unchecked")
    @Override
    public Boolean execute() {
        api.logout(CommandUtil.getSfsUser(username, api));
        return Boolean.TRUE;
    }
114852
@SuppressWarnings("unchecked")
    @Override
    public Boolean execute() {
        BuddyClassUnwrapper unwrapper = context.getUserAgentClass(owner.getClass())
                .getBuddyClass().getUnwrapper();
        List<BuddyVariable> variables = buddyAgentSerializer().serialize(unwrapper, owner);
        List<BuddyVariable> answer = variables;
        if(includedVars.size() > 0) 
            answer = getVariables(variables, includedVars);
        answer.removeAll(getVariables(answer, excludedVars));
        try {
            User sfsUser = CommandUtil.getSfsUser(owner, api);
            SmartFoxServer.getInstance().getAPIManager().getBuddyApi()
                    .setBuddyVariables(sfsUser, answer, 
                            fireClientEvent, fireServerEvent);
        } catch (SFSBuddyListException e) {
            throw new IllegalStateException(e);
        }
        return Boolean.TRUE;
    }
279030
public final void execute() throws MojoExecutionException,
			MojoFailureException {

		// If skip flag set then omit image generation
		if (isSkip()) {
			getLog().info("Skipping creation of image files");
		} else {

			// Run the dot command only if dot files have been changed
			Set<String> changedDotFiles = getChangedDotFiles();
			if (changedDotFiles != null && !changedDotFiles.isEmpty()) {
				if (!executeDot(changedDotFiles)) {
					throw new MojoExecutionException("Executing '" + command
							+ "' command failed");
				}
			}
		}
	}
743391
@SuppressWarnings("unchecked")
    @Override
    public Boolean execute() {
        validateCommand();
        Room room = CommandUtil.getSfsRoom(roomName, extension);
        validateRoom(room);
        List<User> recipients = room.getUserList();
        for(String exUser : excludedUsers) 
            recipients.remove(room.getUserByName(exUser));
        ISFSObject params = createResponseParams();
        api.sendExtensionResponse(command, params, recipients, room, useUDP);
        logResponse(params);
        return Boolean.TRUE;
    }
1212990
@Override
	public boolean execute(final LineReader reader, final String[] parts, final SqlConfig sqlConfig,
			final Properties props) {
		showMessage(reader.getTerminal(), "/this.txt");

		return true;
	}
1179433
private void execute(String command) throws XAException {
    try {
      connection.createStatement().execute(command);
    } catch (SQLException sqle) {
      throw mapXaException(sqle);
    }
  }
382376
@Override
    public final void execute() {
        beforeLine = editor.getLine();
        beforeColumn = editor.getColumn();
        doExecute();
        afterLine = editor.getLine();
        afterColumn = editor.getColumn();
    }
1131979
@Override
	public void execute() {
		if (this.batches.isEmpty())
			return;
		
		// Reset the collection before making the call to eliminate callback chatter when
		// the batches call back to the master.
		List<Batch> old = this.batches;
		
		// Reset our batches
		this.batches = new ArrayList<Batch>();
		this.queryBatch = null;
		
		for (Batch batch: old) {
			batch.execute();
		}
	}
970902
public void execute() throws BuildException {
        log.debug("execute()");

        command = command.trim();

        if (srcFile == null && command.length() == 0 && filesets.isEmpty()) {
            throw new BuildException("Source file does not exist!", getLocation());
        }

        if (srcFile != null && !srcFile.exists()) {
            throw new BuildException("Source file does not exist!", getLocation());
        }

        // TODO: any of this used?
        // deal with the filesets
        for (int i = 0; i < filesets.size(); i++) {
            FileSet fs = filesets.elementAt(i);
            DirectoryScanner ds = fs.getDirectoryScanner(getProject());
            File srcDir = fs.getDir(getProject());
            String[] srcFiles = ds.getIncludedFiles();
        }

        try {
            PrintStream out = System.out;
            try {
                if (output != null) {
                    log.verbose("Opening PrintStream to output file " + output);
                    out = new PrintStream(
                            new BufferedOutputStream(
                                    new FileOutputStream(output.getAbsolutePath(), append)));
                }

                // if there are no groovy statements between the enclosing Groovy tags
                // then read groovy statements in from a text file using the src attribute
                if (command == null || command.trim().length() == 0) {
                    createClasspath().add(new Path(getProject(), srcFile.getParentFile().getCanonicalPath()));
                    command = getText(new BufferedReader(new FileReader(srcFile)));
                }

                if (command != null) {
                    execGroovy(command, out);
                } else {
                    throw new BuildException("Source file does not exist!", getLocation());
                }

            } finally {
                if (out != null && out != System.out) {
                    out.close();
                }
            }
        } catch (IOException e) {
            throw new BuildException(e, getLocation());
        }

        log.verbose("statements executed successfully");
    }