public void unregister(final Command command, Map<String, ?> properties) throws Exception {
commandRegistry.removeCommand(command);
}
public void register(final Link link, Map<String, ?> properties) throws Exception {
LinkCommand cmd = new LinkCommand(commandRegistry, link.getTarget());
cmd.setLocation(new CommandLocationImpl(link.getName()));
commandRegistry.registerCommand(cmd);
}