*/
private static int executeCommand(ApplicationDescriptor application,
String commandName, String[] args)
{
int result = ResultCode.OK;
Command c = CommandFactory.getInstance().getCommand(commandName);
if (c != null)
{
result = c.execute(application, args);
}
else
{
System.err.append("command ").append(commandName).append(" not found");
result = ResultCode.COMMAND_NOTFOUND;