public DoubleAuctionTemplate[] receiveSameTemplates(Template tpl) {
		String queryString = "";
		
		int i = 0;
		for (i = 0; i < 9; i++) {
			Integer min;
			Integer max;
			try {
				min = (Integer) PropertyUtils.getSimpleProperty(tpl, "property" + i + "_min");
				max = (Integer) PropertyUtils.getSimpleProperty(tpl, "property" + i + "_max");
				
				
				if (min == null && max == null) {
					continue;
				}
				
				int avg = Math.round((min + max) / 2);
				
				if (!queryString.isEmpty()) {
					queryString += " AND ";
				}
				queryString += " property" + i + "_min <= " + avg + " AND property" + i + "_max >=" + avg;

			} catch (IllegalAccessException e) {
				e.printStackTrace();
			} catch (InvocationTargetException e) {
				e.printStackTrace();
			} catch (NoSuchMethodException e) {
				e.printStackTrace();
			}
			
		}
		return space.takeMultiple(new SQLQuery<DoubleAuctionTemplate>(DoubleAuctionTemplate.class, queryString), Integer.MAX_VALUE);
	}