private void handleRequestAndRespond(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException {
        RDFUnitConfiguration configuration = null;
        try {
            configuration = getConfiguration(httpServletRequest);
        } catch (ParameterException e) {
            String message = e.getMessage();
            if (message != null) {
                printMessage(httpServletResponse, message);
            }
            printHelpMessage(httpServletResponse);
            httpServletResponse.getWriter().close();
            return;
        }
        assert configuration != null;

        final TestSource dataset = configuration.getTestSource();

        final TestSuite testSuite = getTestSuite(configuration, dataset);
        assert testSuite != null;

        TestExecution results = null;
        try {
            results = validate(configuration, dataset, testSuite);
        } catch (TestCaseExecutionException e) {
            // TODO catch error
        }
        assert results != null;

        try {
            writeResults(configuration, results, httpServletResponse);
        } catch (RdfWriterException e) {
            printMessage(httpServletResponse, e.getMessage());
        }
    }
private void handleRequestAndRespond ( HttpServletRequest httpServletRequest , HttpServletResponse httpServletResponse ) throws IOException { RDFUnitConfiguration configuration = null ; try { configuration = getConfiguration ( httpServletRequest ) ; } catch ( ParameterException e ) { String message = e . getMessage ( ) ; if ( message != null ) { printMessage ( httpServletResponse , message ) ; } printHelpMessage ( httpServletResponse ) ; httpServletResponse . getWriter ( ) . close ( ) ; return ; } assert configuration != null ; final TestSource dataset = configuration . getTestSource ( ) ; final TestSuite testSuite = getTestSuite ( configuration , dataset ) ; assert testSuite != null ; TestExecution results = null ; try { results = validate ( configuration , dataset , testSuite ) ; } catch ( TestCaseExecutionException e ) { } assert results != null ; try { writeResults ( configuration , results , httpServletResponse ) ; } catch ( RdfWriterException e ) { printMessage ( httpServletResponse , e . getMessage ( ) ) ; } }
Has all the workflow logic for getting the parameters, performing a validation and writing the output