code: @Override
      public Object encode(final Mapper mapper, final Object value, final MappedField optionalExtraInfo) {
          if (isResolved()) {
              return wrapId(mapper, optionalExtraInfo, get());
          } else {
              return null;
          }
  
      }
docs: {@inheritDoc}