Fix compatibility with Kustvakt by reintroducing getAvailability() in AbstractDocument

Change-Id: I2f2aa4606199e34c23eb86bf2b0e9c4e3f24f389
diff --git a/Changes b/Changes
index e9c6eec..b2f2b5c 100644
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.58.4 2019-01-18
+0.58.4 2019-01-21
     - [cleanup] Remove deprecated methods setLicense/getLicense,
       setTokenization/getTokenization, setLayerInfo/getLayerInfo,
       setField/getField (including json serialization)
@@ -13,6 +13,8 @@
       (fixes #46) (diewald)
     - [feature] Respect fields order for fields responses (fixes #46)
       (diewald)
+    - [bugfix] Reintroduce getAvailability() method in AbstractDocument
+      for compatibility with Kustvakt (diewald)
 
 0.58.3 2018-12-17
     - [feature] Introduced attachements as meta data fields
diff --git a/src/main/java/de/ids_mannheim/korap/index/AbstractDocument.java b/src/main/java/de/ids_mannheim/korap/index/AbstractDocument.java
index 8de0f35..cd50c5d 100644
--- a/src/main/java/de/ids_mannheim/korap/index/AbstractDocument.java
+++ b/src/main/java/de/ids_mannheim/korap/index/AbstractDocument.java
@@ -340,6 +340,12 @@
 
 
     @Deprecated
+    public String getAvailability () {
+        return this.getFieldValue("availability");
+    };
+    
+
+    @Deprecated
     @JsonProperty("corpusID")
     public String getCorpusID () {
         return this.getFieldValue("corpusID");