* temp class until all the json serializable stuff moves out of the defs
*/
public static class OldSerializer implements JsonSerializer<JsonSerializable> {
@Override
public final ReferenceType getReferenceType(JsonSerializable value) {
Serialization serialization = value.getClass().getAnnotation(Serialization.class);
if (serialization != null) {
return serialization.referenceType();
}
return ReferenceType.NONE;
}