added LazyEntryView class overrides getValue() method with a policy check and deserialize function to avoid unneeded deserialization

added test
some corrections
fixed getKey()
Merge pull request #3087 from hasancelik/fixes#2665-maintenance

added LazyEntryView class overrides getValue() method with a policy chec...