AttributelessFactory extends SimpleFactoryBase<L,R> { private AttributelessFactory<L,R> copy(){ AttributelessFactory<L, R> copy = new AttributelessFactory<>(); copy.clazz=clazz; return copy; }  AttributelessFactory<L,R> withLiveClass(Class<? extends L> clazz); static AttributelessFactory<L,R> create(Class<? extends L> clazz); @JsonProperty
    public Class<? extends L> clazz; }
@Test public void test_json(){ ExampleAttributelessFactory exampleParamterlessFactory =new ExampleAttributelessFactory(Test123.class); System.out.println(ObjectMapperBuilder.build().writeValueAsString(exampleParamterlessFactory )); ObjectMapperBuilder.build().copy(exampleParamterlessFactory); }