adapting portal to refactored distribution tree implementation in cdmlib, fixes problems in #3475 #2562 #3893
adapting portal to refactored distribution tree implementation in cdmlib, fixes problems in #3475 #2562 #3893