}
private static void menuOptions(final List<ObjectAction> actions, final ObjectAdapter target,
final UserActionSet menuOptionSet) {
for (int i = 0; i < actions.size(); i++) {
UserAction option = null;
if (actions.get(i).getActions().size() > 0) {
option = menuOptionSet.addNewActionSet(actions.get(i).getName());
menuOptions(actions.get(i).getActions(), target, (UserActionSet) option);
} else {