Contractive projections on Jordan $C^*$-algebras and generalizations.