Bug 1079748 - Implement hierarchy manager

please remove the debug line