if (reg != null) {
IConfigurationElement[] elements = reg.getConfigurationElementsFor("org.eclipse.ecf.provider.irc.bot.commandHandler");
for(int i = 0; i < elements.length; i++) {
String id = elements[i].getAttribute("botId");
String expression = elements[i].getAttribute("expression");
ICommandHandler handler = (ICommandHandler) elements[i].createExecutableExtension("class");
List c = (List) commands.get(id);
if(c == null) {
c = new ArrayList();
c.add(new CommandEntry(expression, handler));
commands.put(id, c);