@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface TypeSerializationMethod
Specify a method to use for serialization of an attribute.
The method must exist on the type of the attribute without parameter.
The type returned by the method will be used as the serialized type.
The type of the attribute must also have a contructor with a single parameter having
the same type as the type returned by the method.