package de.ddb.pdc.metadata;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonFormat
@JsonIgnoreProperties(ignoreUnknown = true)
class ItemAipResult {

  @JsonProperty
  private EDMItem edm;

  public RDFItem getRDFItem() {
    return edm.getRdf();
  }
}

@@ -192,16 +192,56 @@
 perty;%0A%0A
+/**%0A * call for the aip json result%0A */%0A
 @JsonFor
@@ -357,37 +357,146 @@
 %0A%0A  
-public RDFItem getRDFItem() %7B
+/**%0A   * @return rdf item of the json result or null%0A   */%0A  public RDFItem getRDFItem() %7B%0A    if (edm == null) %7B%0A      return null;%0A    %7D
 %0A   

add documentation and null check