private List<ExternalContent> getExpandedExternalContents(final Request request) {

		final List<ExternalContent> externalContents = request.getExternalContents();
		final List<Variable> contextVariables = workflow.getContext().getVariables();

		for (final ExternalContent eContent : externalContents) {

			print("External content :");

			if (eContent.getName() != null) {
				final String newName = VariableHelper.substituteVariables(eContent.getName(), contextVariables);
				eContent.setName(newName);

				print(" name="  + eContent.getName());
			}

			if (eContent.getType() != null) {
				final String newType = VariableHelper.substituteVariables(eContent.getType(), contextVariables);			
				eContent.setType(newType);

				print(" type="  + eContent.getType());
			}

			if (eContent.getFilename() != null) {
				final String newFilename = VariableHelper.substituteVariables(eContent.getFilename(), contextVariables);			
				eContent.setFilename(newFilename);

				print(" filename="  + eContent.getFilename());
			}

			println();
		}

		return externalContents;
	}