@Override
    public void handleRestCall(final HttpRequest request) {

        final List<String> errorList = new ArrayList<>(0);
        final MethodCall<Object> methodCall = standardRequestTransformer.transform(request, errorList);

        if (methodCall != null && errorList.size() == 0) {
            if (!addRequestToCheckForTimeouts(request)) {
                handleOverflow(request);
                return;
            }
            sendMethodToServiceBundle(methodCall);
        } else {
            if (!request.isHandled()) {
                handleErrorConverting(request, errorList, methodCall);
            }
            return;
        }

        final RequestMetaData requestMetaData = metaDataProviderMap
                .get(RequestMethod.valueOf(request.getMethod())).get(request.address());

        final ServiceMethodMeta serviceMethod = requestMetaData.getMethod();

        if (serviceMethod.getMethodAccess().returnType() == void.class
                && !serviceMethod.hasCallBack()) {

            request.handled();

            final int responseCode = serviceMethod.getResponseCode();
            writeResponse(request.getReceiver(), responseCode == -1 ? HttpStatus.ACCEPTED : responseCode,
                    serviceMethod.getContentType(), "\"success\"",
                    requestMetaData.getRequest().getResponseHeaders());

        }


    }
@Override
    public void handleRestCall(final HttpRequest request) {

        final List<String> errorList = new ArrayList<>(0);
        final MethodCall<Object> methodCall = standardRequestTransformer.transform(request, errorList);

        if (methodCall != null && errorList.size() == 0) {
            if (!addRequestToCheckForTimeouts(request)) {
                handleOverflow(request);
                return;
            }
            sendMethodToServiceBundle(methodCall);
        } else {
            if (!request.isHandled()) {
                handleErrorConverting(request, errorList, methodCall);
            }
            return;
        }

        final RequestMetaData requestMetaData = metaDataProviderMap
                .get(RequestMethod.valueOf(request.getMethod())).get(request.address());

        final ServiceMethodMeta serviceMethod = requestMetaData.getMethod();

        if (serviceMethod.getMethodAccess().returnType() == void.class
                && !serviceMethod.hasCallBack()) {

            request.handled();

            final int responseCode = serviceMethod.getResponseCode();
            writeResponse(request.getReceiver(), responseCode == -1 ? HttpStatus.ACCEPTED : responseCode,
                    serviceMethod.getContentType(), "\"success\"",
                    requestMetaData.getRequest().getResponseHeaders());

        }


    }
@ Override public void handleRestCall ( final HttpRequest request ) { final List < String > errorList = new ArrayList <> ( 0 ) ; final MethodCall < Object > methodCall = standardRequestTransformer . transform ( request , errorList ) ; if ( methodCall != null && errorList . size ( ) == 0 ) { if ( ! addRequestToCheckForTimeouts ( request ) ) { handleOverflow ( request ) ; return ; } sendMethodToServiceBundle ( methodCall ) ; } else { if ( ! request . isHandled ( ) ) { handleErrorConverting ( request , errorList , methodCall ) ; } return ; } final RequestMetaData requestMetaData = metaDataProviderMap . get ( RequestMethod . valueOf ( request . getMethod ( ) ) ) . get ( request . address ( ) ) ; final ServiceMethodMeta serviceMethod = requestMetaData . getMethod ( ) ; if ( serviceMethod . getMethodAccess ( ) . returnType ( ) == void . class && ! serviceMethod . hasCallBack ( ) ) { request . handled ( ) ; final int responseCode = serviceMethod . getResponseCode ( ) ; writeResponse ( request . getReceiver ( ) , responseCode == - 1 ? HttpStatus . ACCEPTED : responseCode , serviceMethod . getContentType ( ) , "\"success\"" , requestMetaData . getRequest ( ) . getResponseHeaders ( ) ) ; } }
MOST IMPORTANT METHOD FOR DEBUGGING WHY SOMETHING IS NOT CALLED.
MOST IMPORTANT METHOD FOR DEBUGGING WHY SOMETHING IS NOT CALLED .