getEntities() method added on KAFDocument class.