How to call a BAM-generated function from an app

TBD