added RDARealm code for tomcat7