Add gen for PrincipalActivity