private static void addProperties(QueryOrTemplateCall qot, Set<Property> results, SPINModuleRegistry registry) {
		Model model = qot.getCls().getModel();
		if(qot.getTemplateCall() != null) {
			TemplateCall templateCall = qot.getTemplateCall();
			Template template = templateCall.getTemplate(registry);
			if(template != null) {
				Command spinQuery = template.getBody();
				if(spinQuery instanceof Ask || spinQuery instanceof Construct) {
					ObjectPropertiesGetter getter = new ObjectPropertiesGetter(model, ((Query)spinQuery).getWhere(), templateCall.getArgumentsMapByProperties(registry), registry);
					getter.run();
					results.addAll(getter.getResults());
				}
			}
		}
		else if(qot.getQuery() instanceof Ask || qot.getQuery() instanceof Construct) {
			ElementList where = qot.getQuery().getWhere();
			if(where != null) {
				ObjectPropertiesGetter getter = new ObjectPropertiesGetter(model, where, null, registry);
				getter.run();
				results.addAll(getter.getResults());
			}				
		}
	}