API for getting a collection of elements queried from a Smart Package

Hi, I'm new to this website so hopefully I'm posting this in the right place. Please advise if I'm not.

I'm relatively new to the java API for MagicDraw. I'm currently using MagicDraw 2021x, and trying to figure out how to get the contents of a smart package assuming I have a reference to the smart package which I've assigned to a variable of type Package. I tried using the getPackagedElement() but that doesn't seem to work on Smart Packages the same way it works on normal packages and returns nothing.

Maybe I'm just having trouble finding it, but I don't see a a subinterface related to Smart Packages when looking under the Package interface. Any help would be appreciated. Not sure if it makes a difference, but specifically the smart package contains a bunch of InformationFlow elements.