It seems weird for a member function on the data handler not to call it's own write method. Perhaps the issue is that the write method should also set the ownership info.