@SuppressWarnings("unchecked")
@Override
protected RiakFuture<Response, Location> executeAsync(RiakCluster cluster)
{
Converter converter;
if (typeReference == null)
{
converter = ConverterFactory.getInstance().getConverter(value.getClass());
}
else
{
converter = ConverterFactory.getInstance().getConverter(typeReference);
}
final OrmExtracted orm = converter.fromDomain(value, namespace, key);
// If there's no vector clock in the object, use one possibly given via
// the builder.
if (orm.getRiakObject().getVClock() == null)
{