Changes to the getPropertyByName to return an entity if property is
instance of entity else return its value if its a property.
Merge pull request #14 from deba/komal

Changes to the getPropertyByName to return an entity if property is