title: How to add Annotations elements in metadata generated by Apache Olingo V2.0?
body: <p>I have developed Odata service for a system entity which generates a metadata but however I cant figure out how to add <code>Annotations</code> element to it. Sample Metadata generated is as follows :-  </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:sap="http://www.sap.com/Protocols/SAPData" Version="1.0"&gt;
          &lt;edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
              m:DataServiceVersion="1.0"&gt;
              &lt;Schema xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="myNamespace" sap:schema-version="1"&gt;
                  &lt;EntityType Name="System"&gt;
                      &lt;Key&gt;
                          &lt;PropertyRef Name="Id" /&gt;
                      &lt;/Key&gt;
                      &lt;Property Name="Id" Type="Edm.Int32" Nullable="false" /&gt;
                      &lt;Property Name="name" Type="Edm.String" sap:label="System Name" sap:creatable="false"
                          sap:updatable="false" sap:sortable="false" sap:required-in-filter="true"/&gt; 
                      &lt;Property Name="description" Type="Edm.String" /&gt;
                      &lt;Property Name="status" Type="Edm.String" /&gt;
                      &lt;Property Name="type" Type="Edm.String" /&gt;
                  &lt;/EntityType&gt;
                  &lt;EntityContainer Name="ODataEntityContainer" m:IsDefaultEntityContainer="true"&gt;
                      &lt;EntitySet Name="Systems" EntityType="myNamespace.System" /&gt;
                      &lt;FunctionImport Name="NumberOfSystems" ReturnType="Collection(myNamespace.System)"
                          m:HttpMethod="GET" /&gt;
                  &lt;/EntityContainer&gt;
  
          &lt;/Schema&gt;
      &lt;/edmx:DataServices&gt;
  &lt;/edmx:Edmx&gt;
  </code></pre>
  
  <p>I need to add following elements to above metatada</p>
  
  <pre><code>&lt;Annotations Target="myNamespace.System"
                  xmlns="http://docs.oasis-open.org/odata/ns/edm"&gt;
                  &lt;Annotation Term="com.sap.vocabularies.UI.v1.LineItem"&gt;
                      &lt;Collection&gt;
                          &lt;Record Type="com.sap.vocabularies.UI.v1.DataField"&gt;
                              &lt;PropertyValue Property="Value" Path="name" /&gt;
                          &lt;/Record&gt;
                          &lt;Record Type="com.sap.vocabularies.UI.v1.DataField"&gt;
                              &lt;PropertyValue Property="Value" Path="description"/&gt;
                          &lt;/Record&gt;
                          &lt;Record Type="com.sap.vocabularies.UI.v1.DataField"&gt;
                              &lt;PropertyValue Property="Value" Path="status" /&gt;
                          &lt;/Record&gt;
                      &lt;/Collection&gt;
                  &lt;/Annotation&gt;
              &lt;/Annotations&gt;
  </code></pre>
  
  <p>I came across the <code>org.apache.olingo.commons.api.edm.provider.annotation</code> package but cant find any suitable API. Please let me know how should I proceed.
  Thanks in advance.</p>