Small refactoring to reduce duplicated code into a GetProperty method.
Merge pull request #1 from JogoShugh/getProperty

Small refactoring to reduce duplicated code into a GetProperty method.