@SuppressWarnings({ "unchecked", "rawtypes" })
public boolean doCommand(ILayerCommand command) {
for (Class<? extends ILayerCommand> commandClass : commandHandlers
.keySet()) {
if (commandClass.isInstance(command)) {
ILayerCommandHandler commandHandler = commandHandlers
.get(commandClass);
if (commandHandler.doCommand(this, command)) {
return true;
}
}
}