private Boolean isDirectConnection()
    {
        if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
            checkRequestObjectInUse();
        }
        Boolean direct = Boolean.valueOf("false");
        Class<? extends IRequest> requestClass = _request.getClass();
        //PI75166
        if(checkAssignableFromIRequestImpl(requestClass)){
            Method method;
            try{
                method = requestClass.getMethod("checkForDirectConnection", null);
                direct = (Boolean) method.invoke(_request, null);
            }
            catch (Exception e) {
                if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
                    logger.logp(Level.FINE, CLASS_NAME,"isDirectConnection", "failed to retrieve direct connection check",e);
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"isDirectConnection", "return -> "+ direct.booleanValue());
        }
        return direct;
    }
private Boolean isDirectConnection ( ) { if ( WCCustomProperties . CHECK_REQUEST_OBJECT_IN_USE ) { checkRequestObjectInUse ( ) ; } Boolean direct = Boolean . valueOf ( "false" ) ; Class < ? extends IRequest > requestClass = _request . getClass ( ) ; if ( checkAssignableFromIRequestImpl ( requestClass ) ) { Method method ; try { method = requestClass . getMethod ( "checkForDirectConnection" , null ) ; direct = ( Boolean ) method . invoke ( _request , null ) ; } catch ( Exception e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "isDirectConnection" , "failed to retrieve direct connection check" , e ) ; } } } if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "isDirectConnection" , "return -> " + direct . booleanValue ( ) ) ; } return direct ; }
F001872