diff --git a/plugins/org.eclipse.xtext.util/src/org/eclipse/xtext/util/Pair.java b/plugins/org.eclipse.xtext.util/src/org/eclipse/xtext/util/Pair.java
index <HASH>..<HASH> 100644
--- a/plugins/org.eclipse.xtext.util/src/org/eclipse/xtext/util/Pair.java
+++ b/plugins/org.eclipse.xtext.util/src/org/eclipse/xtext/util/Pair.java
@@ -47,5 +47,15 @@ public class Pair<T,U> {
     public int hashCode() {
         return firstElement.hashCode() + 17*secondElement.hashCode();
     }
+
+
+    public void setFirstElement(T firstElement) {
+        this.firstElement = firstElement;
+    }
+
+
+    public void setSecondElement(U secondElement) {
+        this.secondElement = secondElement;
+    }
     
 }
dependency injection for general classes not extending ILanguageService