@override void resolve(Type type, bool write) { if ( write ) throw MapperException("constants are not writeable"); }