private void buildPolicyErrorMessage ( String msgKey , String defaultMessage , Object ... arg1 ) { /* The message need to be logged only for level below 'Warning' */ if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { String messageFromBundle = Tr . formatMessage ( tc , msgKey , arg1 ) ; Tr . error ( tc , messageFromBundle ) ; } }
Receives the message key like CSIv2_COMMON_AUTH_LAYER_DISABLED from this key we extract the message from the NLS message bundle which contains the message along with the CWWKS message code .