// creates a synchronization context
SynchronizationContext synchCtx =
SynchronizationFactory.createSynchronizationContext(configContext);
// security service synchronization manager
SecurityServiceMgr securitySynchMgr = synchCtx.getSecurityServiceMgr();
// synchronizes a key file
securitySynchMgr.synchronizeKeyFile(fileRealmName);
}