/**
* Initializes {@code jsonFactory} field, which may be instantiated or obtained from other part of the application.
* This method also configures the {@code jsonFactory} properly.
*/
protected void initJsonFactory() {
jsonFactory = new MappingJsonFactory();
if (jsonFactoryFeatures != null) {
for (final Map.Entry<String, String> e : jsonFactoryFeatures.entrySet()) {
final String key = e.getKey();
final String value = e.getValue();
final JsonFactory.Feature feature;