private WaveletChannelTerminatorProtoImpl getOrCreateWaveletChannelTerminatorProtoImpl(WaveletChannelTerminator message) {
if (message instanceof WaveletChannelTerminatorProtoImpl) {
return (WaveletChannelTerminatorProtoImpl) message;
} else {
WaveletChannelTerminatorProtoImpl messageImpl = new WaveletChannelTerminatorProtoImpl();
messageImpl.copyFrom(message);
return messageImpl;
}
}
private void switchToProto() {