final Builder subMenuItemBuilder =
parent.newSubMenuItem(serviceAdapterMemento, contributedAction, cssMenuLinkFactory);
if (subMenuItemBuilder != null) {
// could be null if invisible
subMenuItemBuilder.build();
}
}
/**
* It's a bit hokey to have to do this, but the