Pavia y Albuquerque, Manuel, Spanish General