public static void addResponseHeaderContentType(
			HashMap<String, String> responseCabs, String recurso) {
		String extension = recurso.substring(recurso.lastIndexOf('.') + 1,
				recurso.length());

		// Some MIME types (this is just a sample)
		if (extension.equals("html"))
			responseCabs.put("Content-Type", "text/html");
		else if (extension.equals("png"))
			responseCabs.put("Content-Type", "image/png");
		else if (extension.equals("jpg"))
			responseCabs.put("Content-Type", "image/jpeg");
		else if (extension.equals("js"))
			responseCabs.put("Content-Type", "text/javascript");
		else if (extension.equals("css"))
			responseCabs.put("Content-Type", "text/css");
		else if (extension.equals("pdf"))
			responseCabs.put("Content-Type", "application/pdf");
		else if (extension.equals("json"))
			responseCabs.put("Content-Type", "text/json");
		else if (extension.equals("txt"))
			responseCabs.put("Content-Type", "text/plain");
		else if (extension.equals("java"))
			responseCabs.put("Content-Type", "text/plain");

	}