private String getDomain ( final String oldSecurityDomain , final String nextSecurityDomain ) { if ( nextSecurityDomain == null ) { return oldSecurityDomain ; } if ( oldSecurityDomain == null ) { return nextSecurityDomain ; } ensureSameDomains ( oldSecurityDomain , nextSecurityDomain ) ; return oldSecurityDomain ; }
Returns security domain value . This method checks domain is the same for every EJB 3 endpoint .