public static String convert(String fileName) {
		String fileType = getFileType(fileName);
		String contentType = null;
		
		if (fileType.equals("html") || fileType.equals("txt")) 
		{
			contentType = HttpHeaders.CONTENT_TYPE_HTML;
		}
		else if (fileType.equals("css")) 
		{
			contentType = HttpHeaders.CONTENT_TYPE_CSS;
		}
		else if (fileType.equals("js")) 
		{
			contentType = HttpHeaders.CONTENT_TYPE_JS;
		} 
		else if (fileType.equals("bmp") || fileType.equals("gif")
				|| fileType.equals("jpg") || fileType.equals("png"))
		{
			contentType = HttpHeaders.CONTENT_TYPE_IMAGE;
		} 
		else if (fileType.equals("ico")) 
		{
			contentType = HttpHeaders.CONTENT_TYPE_ICON;
		} 
		else 
		{
			contentType = HttpHeaders.CONTENT_TYPE_APP;
		}
		
		return contentType;
	}