code: @Override
      public void serialize(T o, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) {
          final FetchPath pathProperties = getPathProperties(jsonGenerator);
  
          if (pathProperties != null) {
              jsonContext.toJson(o, jsonGenerator, pathProperties);
          } else {
              jsonContext.toJson(o, jsonGenerator);
          }
      }
docs: {@inheritDoc}
  <p>
  Serialize entity beans or collections.