moved resource mapping to querySerialization
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/util/ResourceMapper.java b/src/main/java/de/ids_mannheim/korap/query/serialize/util/ResourceMapper.java
new file mode 100644
index 0000000..b55d9be
--- /dev/null
+++ b/src/main/java/de/ids_mannheim/korap/query/serialize/util/ResourceMapper.java
@@ -0,0 +1,22 @@
+package de.ids_mannheim.korap.query.serialize.util;
+
+import java.util.HashMap;
+
+
+public class ResourceMapper {
+
+	public static String descriptor2policy(String descriptor) {
+		HashMap<String, String> map = new HashMap<String, String>();
+		map.put("surface", "t");
+		map.put("lemma", "l");
+		map.put("pos", "p");
+		map.put("const", "c");
+		map.put("dep", "d");
+		map.put("morph", "msd");
+		if (map.containsKey(descriptor)) 
+			return map.get(descriptor);
+		else
+			return descriptor;
+	}
+
+}