Implementation of SerializerFactory and DeserializerFactory