getEntities() method added to KAFDocument class.