Classification of JBW*-triple factors and applications.