in some cases, the setuphandler methods context is not a site but a Products.GenericSetup.context.DirectoryImportContext