Oop.. got my logic wrong regardless.

The problem is that there is two checks that need to be done. I.e., if there is a paragraphStyleName, the derived style names object must be used. The default style name should only be used if there is no paragraph style name.