added method getEntry to Persistence class