setupFederation method