contains -> containsKey with backwards compatible method.
Add @deprecated annotation to contains().
Fix comment.
Merge pull request #38 from alxhub/entity-contains-fix

contains -> containsKey with backwards compatibility.