Persist jcr/xml in hierarchy structure.
Corrected coding styles as suggested and fixed the bug for the hierarchy
path.