ee/src/main/java/org/jboss/as/ee/component/ComponentDescription.java
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();
        }
    }
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();
        }
    }
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.

@return the context service name
Get the context service name .