if (commandRegistryListeners.isEmpty()) {
return;
}
CommandRegistryEvent event = new CommandRegistryEvent(this, command);
for (Iterator i = commandRegistryListeners.iterator(); i.hasNext();) {
((CommandRegistryListener)i.next()).commandRegistered(event);
}