Merge pull request #4 from dhalupa/nested-configurations-support

Fixes hibernate proxy issue
Additional fixes for hibernate proxy issue