diff --git a/src/org/protege/xmlcatalog/XMLCatalog.java b/src/org/protege/xmlcatalog/XMLCatalog.java
index <HASH>..<HASH> 100644
--- a/src/org/protege/xmlcatalog/XMLCatalog.java
+++ b/src/org/protege/xmlcatalog/XMLCatalog.java
@@ -65,4 +65,10 @@ public class XMLCatalog implements XmlBaseContext {
     public void removeEntry(Entry e) {
         entries.remove(e);
     }
+    
+    public void replaceEntry(Entry original, Entry changed) {
+        int i = entries.indexOf(original);
+        entries.remove(original);
+        entries.add(i, changed);
+    }
 }
added a replace entry method so the list ordercan be maintained.