pub fn main(app: &mut ApplicationContext) -> Result<()>