private static void writeResults(final RDFUnitConfiguration configuration, final TestExecution testExecution, HttpServletResponse httpServletResponse) throws RdfWriterException, IOException {
        SerializationFormat serializationFormat = configuration.geFirstOutputFormat();
        if (serializationFormat == null) {
            throw new RdfWriterException("Invalid output format");
        }

        httpServletResponse.setContentType(serializationFormat.getMimeType());
        RdfWriter rdfWriter = RdfResultsWriterFactory.createWriterFromFormat(httpServletResponse.getOutputStream(), serializationFormat, testExecution);
        rdfWriter.write(ModelFactory.createDefaultModel());
    }
private static void writeResults ( final RDFUnitConfiguration configuration , final TestExecution testExecution , HttpServletResponse httpServletResponse ) throws RdfWriterException , IOException { SerializationFormat serializationFormat = configuration . geFirstOutputFormat ( ) ; if ( serializationFormat == null ) { throw new RdfWriterException ( "Invalid output format" ) ; } httpServletResponse . setContentType ( serializationFormat . getMimeType ( ) ) ; RdfWriter rdfWriter = RdfResultsWriterFactory . createWriterFromFormat ( httpServletResponse . getOutputStream ( ) , serializationFormat , testExecution ) ; rdfWriter . write ( ModelFactory . createDefaultModel ( ) ) ; }
Writes the output of the validation to the HttpServletResponse