private static Integer getLocationCategory(Measurement m)
	{
		if (m == null || m.getId() == null) return -1;
		
		Fingerprint f = HomeFactory.getFingerprintHome().getByMeasurementId(m.getId());
				
		if (f != null) {
			Location l = (Location) f.getLocation();
			if (l != null && l.getId() != null) {
				return CategorizerFactory.LocationCategorizer().GetCategoryID(l.getId().toString());
			}
		}
		return -1;
	}