/* (non-Javadoc)
   * @see ca.cmput301f13t03.adventure_datetime.model.IWebStorage#getFragment(java.util.UUID)
   */
  @Override
  public StoryFragment getFragment(UUID fragmentId) throws Exception {
    Get get = new Get.Builder(_index, fragmentId.toString()).type("fragment").build();
    JestResult result = execute(get);
    StoryFragment fragment = result.getSourceAsObject(StoryFragment.class);
    mapImagesToFragment(fragment);

    return fragment;
  }
 private void mapImagesToFragments(List<StoryFragment> fragments) throws Exception {
   for (StoryFragment f : fragments) {
     mapImagesToFragment(f);
   }
 }