JMenu menu = new JMenu(NbBundle.getMessage(IvyAwareAction.class, "CTL_CleanRepositoryCacheAction"));
List<? extends Action> actionsForPath = Utilities.actionsForPath(SUB_MENU_PATH_CLEAN_REPOSITORY);
for (Action a : actionsForPath) {
menu.add(a);
}
IvyFacade facade = Lookup.getDefault().lookup(IvyFacade.class);
try {
String[] resolutionCaches = facade.getResolutionCacheNames(project);
for (String string : resolutionCaches) {
actionsForPath = Utilities.actionsForPath(SUB_MENU_PATH_CLEAN_REPOSITORY_ONE);
for (Action a : actionsForPath) {
menu.add(a);
a.putValue(NAME, string);