Implemented getEntry() method.