FactoryProvider now works better with the standard @Inject
annotation. When using that annotation, parameters are matched by name and type rather than
by position. In addition, values that use the standard @Inject constructor
annotation are eligible for method interception.

the content type should not be guessed except for few cases where we effectively don't know the content type.
The REST layer should move to reading the Content-Type header instead. There are other places where auto-detection may be needed.
This method is deprecated to prevent usages of it from spreading further without specific reasons.