private HashMap<String, String> contextToHashMap(ArrayList<ContextItem> context) {
		if(context == null) {
			return null;
		}
		HashMap<String, String> result = new HashMap<String, String>();
		Iterator<ContextItem> i = context.iterator();
		while(i.hasNext()) {
			ContextItem item = i.next();
			if(item.getPredicate() != null && item.getPredicate() != null) {
				result.put(item.getPredicate(), item.getObject());
			}
		}
		return result;
	}