entity = e;
// HACK: If entrires are requested for the Operations root, we treat it identical to
// requesting the logs for the whole project. What we really need to do is to treat
// the root folders the same way as other folders, i.e. they are part of the project
// both on the client side and on the server side.
ActivitySubjectType type;
KongaID guid;
if (e instanceof RootFolder) {
guid = e.getParent().getID();
type = ActivitySubjectType.PROJECT;
} else if (e instanceof SalesforceWizardEntity) {