public Object beginContext(ComponentMetaData cmd) { // modified to return object d131914
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            if (cmd != null)
                Tr.debug(tc, "begin context " + cmd.getJ2EEName());
            else
                Tr.debug(tc, "NULL was passed.");
        }

        if (cmd == null) {
            Tr.error(tc, "WSVR0603E"); // d143991
            throw new IllegalArgumentException(Tr.formatMessage(tc, "WSVR0603E"));
        }

        return threadContext.beginContext(cmd); //131914
    }
public Object beginContext ( ComponentMetaData cmd ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { if ( cmd != null ) Tr . debug ( tc , "begin context " + cmd . getJ2EEName ( ) ) ; else Tr . debug ( tc , "NULL was passed." ) ; } if ( cmd == null ) { Tr . error ( tc , "WSVR0603E" ) ; throw new IllegalArgumentException ( Tr . formatMessage ( tc , "WSVR0603E" ) ) ; } return threadContext . beginContext ( cmd ) ; }
Begin the context for the ComponentMetaData provided.

@param ComponentMetaData It Must not be null. Tr.error will be logged if it is null.
@return Previous Object, which was on the stack. It can be null.