builder = castBuilder(builder, CreateModable.class).withMode(CreateMode.valueOf(spec.mode.name()));
}
if ( spec.asyncContext != null )
{
BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
builder = castBuilder(builder, Backgroundable.class).inBackground(backgroundCallback, spec.asyncContext);
}
Object path = castBuilder(builder, PathAndBytesable.class).forPath(spec.path, spec.data);
return new OptionalPath((path != null) ? String.valueOf(path) : null);