/wro4j-extensions/src/main/java/ro/isdc/wro/extensions/http/handler/ModelAsJsonRequestHandler.java
response.getWriter( ).flush( ) ; newGson( request).toJson( modelFactory.create( ) , response.getWriter( ) ) ;
newGson ( request ) .toJson ( modelFactory.create ( ) , response.getWriter ( ) ) ; response.getWriter ( ) .flush ( ) ;
@Override public void handle(final HttpServletRequest request, final HttpServletResponse response) throws IOException { ResponseHeadersConfigurer.noCache().setHeaders(response); response.setContentType(CONTENT_TYPE); response.setStatus(HttpServletResponse.SC_OK); <extra_id_0> } protected Gson newGson(final HttpServletRequest request) { return new GsonBuilder().registerTypeAdapter(Resource.class, new ResourceSerializer(getWroBasePath(request))).setPrettyPrinting().disableHtmlEscaping().create(); } @Override public boolean accept(final HttpServletRequest request) {