for (final Iterator ahi = actionHandlers.iterator(); ahi.hasNext();) {
final Action[] aa = ((Action.Handler) ahi.next()).getActions(
null, this);
if (aa != null) {
for (int ai = 0; ai < aa.length; ai++) {
final Action a = aa[ai];
target.startTag("action");
final String akey = actionMapper.key(aa[ai]);
target.addAttribute("key", akey);
if (a.getCaption() != null) {
target.addAttribute("caption", a.getCaption());
}
if (a.getIcon() != null) {
target.addAttribute("icon", a.getIcon());
}
if (a instanceof ShortcutAction) {
final ShortcutAction sa = (ShortcutAction) a;
target.addAttribute("kc", sa.getKeyCode());
final int[] modifiers = sa.getModifiers();