protected boolean canManageDirectories(OperationContext ctx) {
   ActionManager actionManager = Framework.getLocalService(ActionManager.class);
   return actionManager.checkFilter("directoriesManagementAccess", createActionContext(ctx));
 }
 public String getViewFor(String mainTabId) {
   Action mainTabAction = actionManager.getAction(mainTabId);
   return mainTabAction != null ? getViewFor(mainTabAction) : null;
 }