Changed forestToHierarchy to ignore the passed in manager and create a new one to avoid InvalidStatusLine error when reusing connections.