private ActivitySubject getEntrySubject(IntegrationEntity entity) throws IllegalArgumentException {
if (entity instanceof RootFolder) {
EntityType itemType = ((RootFolder) entity).getItemType();
if (itemType == EntityType.Project) {
return new EntireSystemSubject();
}
}
return IntegrationEntityActivitySubject.create(entity);
}