public ServiceName getContextServiceName ( ) { if ( contextServiceName != null ) return contextServiceName ; if ( getNamingMode ( ) == ComponentNamingMode . CREATE ) { return ContextNames . contextServiceNameOfComponent ( getApplicationName ( ) , getModuleName ( ) , getComponentName ( ) ) ; } else if ( getNamingMode ( ) == ComponentNamingMode . USE_MODULE ) { return ContextNames . contextServiceNameOfModule ( getApplicationName ( ) , getModuleName ( ) ) ; } else { throw new IllegalStateException ( ) ; } }
Get the context service name .