public bool ExecuteCommand(Exports.ICommand command) { if (m_log.IsDebugEnabled) { m_log.Debug("Created new command of type " + command); } bool result = false; if (command.CanExecute(m_engine)) { if (m_log.IsDebugEnabled) { m_log.Debug("Executing command of type " + command.GetType()); } command.Execute(m_engine); result = true; } else { if (m_log.IsDebugEnabled) { m_log.Debug("Command of type " + command.GetType() + "cannot be executed now"); } } return result; }