issue-71: code changes after reviews

synced to ehcache/master and ready to be merged
It's not currently being used and it's not part of jsr107. However, we might need it later for our own monitoring.