title: Unable to iterate paragraph object in Sightly
body: <p>I am trying to iterate a list of paragraphs(com.day.cq.wcm.foundation.Paragraph) using JAVA USE API and Sightly. It is able to get the paragraphs in the backend. However its unable to read that and display it in front end.</p>
  
  <p>Below is the code:</p>
  
  <p><strong>JAVA:</strong></p>
  
  <pre><code>public class AnchorList extends WCMUsePojo{
  
      private List&lt;Paragraph&gt; paragraphs;
  
      public List&lt;Paragraph&gt; getParagraphs() {
          return paragraphs;
      }
  
      public void setParagraphs(List&lt;Paragraph&gt; paragraphs) {
          this.paragraphs = paragraphs;
      }
  
      public void activate() throws Exception{
  
          paragraphs = new LinkedList&lt;Paragraph&gt;();
          Resource resource = getResource();
  
          SlingHttpServletRequest slingRequest = getRequest();
  
          ParagraphSystem parSys = ParagraphSystem.create(resource, slingRequest);
  
          for (Paragraph par: parSys.paragraphs()) {
              paragraphs.add(par);
          }
      }
  }
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div data-sly-use.anchorList="AnchorList" data-sly-unwrap&gt;
      &lt;div data-sly-list.paragraphs="${anchorList.paragraphs}" data-sly-unwrap&gt;
         Para Type is: ${paragraphs.getType}
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am trying to get the type of paragraph from the foundation paragraph class. But its able to identify the size and iterating 'n' times but its not able to display the value.</p>
  
  <p>Note: Paragraph is not a custom class, its the cq foundation class i.e. com.day.cq.wcm.foundation.Paragraph;</p>