public static ConfigurableChannel of(Channel channel) {
    Assert.isTrue(channel instanceof ConfigurableChannel, "The channel {} was not created by Lyra", channel);
    return (ConfigurableChannel) channel;
  }
public static ConfigurableChannel of ( Channel channel ) { Assert . isTrue ( channel instanceof ConfigurableChannel , "The channel {} was not created by Lyra" , channel ) ; return ( ConfigurableChannel ) channel ; }
Returns the {@code channel} as a {@link ConfigurableChannel}.

@throws IllegalArgumentException if {@code channel} was not created by Lyra