AAD-68: missing callback part after updating the referral
AAD-11: mixed up document types
AAd-36: check on entity type
SSEC-42: breaks the build, reverting to a custom static security version until all plugins have been upgraded by Oliver + added in-memory service (to be integrated for our own deploy)