LPS-31462 Registering factory in Spring