How is this file used?  Because an ApiKey is passed to the register function should this class first be configured then register uses this class?