catch (NamingException e)
{
throw new RuntimeException(e);
}
Interceptor interceptor = new NullInterceptor();
if (domain != null)
{
AuthenticationManager manager = (AuthenticationManager) domain;
RealmMapping mapping = (RealmMapping) domain;
//interceptor = new RunAsSecurityInterceptor(manager, mapping, getRunAsIdentity(container));