@Override
	public Location locate(Measurement currentMeasurement) 
	{
		Location l = null;
		
		try {
			
			String outputfile = SVMSupport.predict(currentMeasurement);		
			
			BufferedReader outputreader = new BufferedReader(new InputStreamReader(new FileInputStream(outputfile)));
			String outputline = outputreader.readLine();
			if (outputline != null) {
				double locationTagIDScaled = Double.parseDouble(outputline);
				int locationTagID = (int)locationTagIDScaled;
				l = getByLocationTag(CategorizerFactory.LocationCategorizer().GetCategory(locationTagID));
			}		
			
		} catch (FileNotFoundException e) {
			log.log(Level.SEVERE, "locate failed due to FileNotFoundException: " + e.getMessage());
		} catch (IOException e) {
			log.log(Level.SEVERE, "locate failed due to IOException: " + e.getMessage());
		} catch (NumberFormatException e) {
			log.log(Level.SEVERE, "locate failed due to NumberFormatException: " + e.getMessage());
		}


		return l;
	}