code: public static void execute(PrintGetTemplateExtRequest request, PrintGetTemplateExtResponse response,
  					PrintDtoConverterService converterService, PrintService printService) throws GeomajasException {
  		PrintTemplateInfo template = request.getTemplate();
  		PageComponent page = (PageComponent) converterService.toInternal(template.getPage());
  		
  		// Adjust the title text of the legend component if present
  		updateLegendChildren(request, page);
  
  		if (request.getPageSize() != null) {
  			page.setSize(request.getPageSize(), true);
  		}
  		SinglePageDocument pdfDoc = new SinglePageDocument(page, null);
  		pdfDoc.layout();
  		// Add document to container
  		String documentId = printService.putDocument(pdfDoc);
  		response.setDocumentId(documentId);
  	}
docs: Perform the first step in generating a template-based printout of for instance the specified map view,
  the map's legend,....
  
  @param request
  (Input) It specifies the template and the output format of the document
  @param response
  (Output) On return, it contains the id of the document (possibly the rendering step is not yet
  completed)
  
  @param converterService
  @param printService
  @throws GeomajasException