private Hashtable<String, String> loadCsv(HttpServletRequest request, String tempFolder) throws IOException
	{
		Hashtable<String, String> items = new Hashtable<String, String>();
		File csv = null;
		
		if (request.getParameter("uploadfile") != null && (request instanceof SabaHttpServletRequest))
		{
			csv = ((SabaHttpServletRequest)request).getFile("uploadfile");
			if (csv != null)
			{
				// file found in request, save to temporary folder
				_csvFilename = csv.getName();
				FileWriter writer = new FileWriter(tempFolder + "/" + _csvFilename);
				BufferedReader reader = new BufferedReader(new FileReader(csv));

				try
				{
					String line = reader.readLine();
					while (line != null)
					{
						writer.write(line);
						writer.write("\r");
						line = reader.readLine();
					}
				}
				finally
				{
					reader.close();
					writer.close();
				}
			}
		}
		else
		{
			// file not found in request, read from temporary folder
			csv = new File(tempFolder + "/" + _csvFilename);
		}
			
		if (csv != null)
		{
			BufferedReader reader = new BufferedReader(new FileReader(csv));
			
			try
			{
				String line = reader.readLine();
				while (line != null)
				{
					String parts[] = line.split(",");
					if (parts != null && parts.length > 1)
					{
						items.put(parts[0], parts[1]);
					}
					
					line = reader.readLine();
				}
			}
			catch (IOException ex)
			{
				//
			}
			finally
			{
				reader.close();
			}
		}
		
		return items;
	}