code: @Override
      public Object findSerializer(Annotated am) {
          if (am.hasAnnotation(ObjectId.class)) {
              return ObjectIdSerializer.class;
          }
          return null;
      }
docs: Handling of ObjectId annotated properties