How to set the XFormPrim Frame position related to object using api?

I want to set the XFormPrim position to the corner of bounding box of an object. But when I add object using add_reference_to_stage and XFormPrim, I just set the position related to world coordinate frame. Does anyone have any idea?