Collection<Operation> ops = MetaProjectManager.getManager().getAllowedOperations(projectId.getId(), executionContext.getUserId().getUserName());
PermissionsSet.Builder builder = PermissionsSet.builder();
for (Operation op : ops) {
builder.addPermission(Permission.getPermission(op.getName()));
}
return new LoadProjectResult(executionContext.getUserId(), builder.build(), projectDetails);
}