code: synchronized void setChannelFactory(ChannelFactory factory) throws ChannelFactoryException {
          if (factory != null && cf != null) {
              throw new ChannelFactoryException("ChannelFactory already exists");
          }
          this.cf = factory;
      }
docs: Internally set the channel factory in this data object.
  
  @param factory
  @throws ChannelFactoryException