/**
   * Implementation of AbstractController.handleRequestInternal
   *
   * @param HttpServletRequest request
   * @param HttpServletResponse response
   * @return ModelAndView
   * @throws Exception
   */
  @Override
  protected ModelAndView handleRequestInternal(
      HttpServletRequest request, HttpServletResponse response) throws Exception {

    readRequest(request);

    Owner owner = myshowcaseService.getOwnerById(new Long(ownerId));

    Showcase showcase = myshowcaseService.obtainCurrentShowcase(owner);

    List<String> messages = new ArrayList<String>();

    String showcaseArtefactCount = "" + showcase.getArtefacts().size();

    messages.add(showcaseArtefactCount);

    response.setContentType("application/json");

    response.setCharacterEncoding("UTF-8");

    PrintWriter out = response.getWriter();

    out.write(new Gson().toJson(messages));

    out.flush();

    out.close();

    return null;
  }