ConcreteMenu menu = getCurrentMenu();
if (menu != null) {
try {
menu.setShortcutProperties(shortcutProperties);
} catch (Exception e) {
throw new BuilderException(e);
}
} else {
throw new BuilderException(
exceptionLocalizer.
format("menu-building-shortcut-error"));
}
}