[#3199] Add some Javadoc to Result.attach() and Result.detach() to explain the semantics