}
public List<Command> queryCommands() {
try {
String xml = m_config.toString();
AppConfig config = DefaultSaxParser.parse(xml);
Map<Integer, Command> commands = config.getCommands();
for (Entry<Integer, Command> entry : commands.entrySet()) {
entry.getValue().getCodes().putAll(m_config.getCodes());
}
return new ArrayList<Command>(commands.values());