private void dumpFile(WorkflowReport workflowReport, int count, List<Content> contents, List<ExternalContent> externalContents) throws IOException {
		if (AzotConfig.GLOBAL.DUMP) {
			final File requestFile = new File(workflowReport.getOutputDirectory(), "call_" + String.valueOf(count) + "_request.xml");
			FileWriter writer = null;

			if (contents != null && contents.size() > 0) {
				if (writer == null) {
					writer = new FileWriter(requestFile);
				}
				for (final Content content : contents) {
					writer.append(content.getValue());
				}
			}

			if (externalContents != null && externalContents.size() > 0) {
				if (writer == null) {
					writer = new FileWriter(requestFile);
				}
				for (final ExternalContent eContent : externalContents) {
					writer.append(eContent.getFilename());
				}
			}

			if (writer != null) {
				writer.flush();
				writer.close();
			}
		}

	}