refactor uaa router.register and component.announce process.