@@ -0,0 +1,1231 @@
+package org.limeprotocol;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Iterator;%0A%0Apublic class DocumentCollection implements Document, Iterable %7B%0A%0A    public final String MIME_TYPE = %22application/vnd.lime.collection+json%22;%0A%0A    public final String TOTAL_KEY = %22total%22;%0A    public final String ITEM_TYPE_KEY = %22itemType%22;%0A    public final String ITEMS_KEY = %22items%22;%0A%0A    private int total;%0A    private MediaType itemType;%0A    private Document%5B%5D items;%0A%0A    public DocumentCollection() %7B%0A        this.itemType = MediaType.parse(MIME_TYPE);%0A    %7D%0A%0A    public int getTotal() %7B%0A        return total;%0A    %7D%0A%0A    public void setTotal(int total) %7B%0A        this.total = total;%0A    %7D%0A%0A    public MediaType getItemType() %7B%0A        return itemType;%0A    %7D%0A%0A    public void setItemType(MediaType itemType) %7B%0A        this.itemType = itemType;%0A    %7D%0A%0A    public Document%5B%5D getItems() %7B%0A        return items;%0A    %7D%0A%0A    public void setItems(Document%5B%5D items) %7B%0A        this.items = items;%0A    %7D%0A%0A    @Override%0A    public MediaType getMediaType() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public Iterator iterator() %7B%0A        if (this.items != null) %7B%0A            return Arrays.asList(items).iterator();%0A        %7D%0A%0A        return null;%0A    %7D%0A%7D%0A

Create DocumentCollection class