public Location getLocation(Integer locationId, String symbolicId) {
		List<Location> list;
		
		if (locationId != -1) {
			list =  get("locationId = " + locationId);
			return list.size() == 0 ? null : list.get(0);
		} else if (symbolicId != null && symbolicId.length() > 0) {
			list = get("symbolicId = '" + symbolicId + "'");
			return list.size() == 0 ? null : list.get(0);
		} else {
			return null;
		}
		
		
	}