Fix a permission problem by using the hashCode method from Objects.
Merge pull request #29 from flo/headless-permission-fix

Fix a permission problem by using the hashCode method from Objects.