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