class HibernateCollectionAdapter extends BasicAdapter {

	@Override
	public Feed getFeed() throws Exception {		
		Session session = getSessionFactory().openSession();
		
		String queryName = config.getFeedId() + "-get-feed";		
		Query query = session.getNamedQuery(queryName);
		
		Feed feed = createFeed();
		query.setResultTransformer(new AtomEntryResultTransformer(
				config.getServerConfiguration().getServerUri() + "/" + config.getFeedId(), this.getAbdera(), feed));
		query.list();		
		
		session.close();
		return feed;
	}

	public  HibernateCollectionAdapter(Abdera abdera, FeedConfiguration config);

}