TOMEE-1226 correct lifecycle handling of TomEERealm delegate(s)

git-svn-id: https://svn.apache.org/repos/asf/tomee/tomee/trunk@1598336 13f79535-47bb-0310-9956-ffa450edef68