Revert "some ideas around how to get a Security Realm"

This reverts commit d6a53069e7dec9453b0b3a98a7b0dd96c5c1d5ef.
clean build