public void parseFileForProperties(String filename)
	{
		try 
		{
			BufferedReader br = new BufferedReader(new FileReader(filename));
			String line;
			String segment = "";
			String segmentTitle = "";
			while ((line = br.readLine()) != null) {
				if (line.startsWith("-->"))
				{
					if (!segment.equals(""))
					{
						parseSegment(segmentTitle, segment);
						segment = "";
					}
					segmentTitle = line.replace("-->", "").trim();
				}
				else
					segment += line + "\n";
			}

			if (!segment.equals(""))
			{
				parseSegment(segmentTitle, segment);
			}

			br.close();
			
			if (this.propSimulation.isEmpty())
				throw new Exception("ERROR: required \"simulation\" segment missing from the setup file");
			
			if (this.propScenario.isEmpty())
				throw new Exception("ERROR: required \"scenario\" segment missing from the setup file");
			
			if (this.propInstallations.isEmpty())
				throw new Exception("ERROR: at least one \"installation\" segment must be present in the setup file");
			
			checkResponseType(propSimulation.getProperty("response_type"), propPricingBaseline, propPricing);
			
			
		
		} catch (IOException ex) {
			ex.printStackTrace();
		}
		catch (Exception ex) {
			System.err.println(ex.getMessage());
			System.exit(0);
		}
	}