* If the Serialization class also implements {@link FieldConfigurable} then
* the field's metadata (properties) is passed to the instance allowing stateful serialization.
*/
public void setObjectSerialization(Class<? extends Serialization> serialization){
if (type != Type.OBJECT){
throw new PangoolRuntimeException("Can't set custom serialization for type " + type);
}
if (serializationClass != null){
throw new PangoolRuntimeException("Serialization already set :" + serializationClass);
}
serializationClass = serialization;
}