Revert "Remove toMap function from HSSContainer"

This reverts commit 682736d63693d44c2429b552be7261e8ebe6572a.
Revert "Remove the toMap code from HSSObject"