public static void attachEndpointToSession(Channel channel, Endpoint endpoint) {
    // TODO
    // Netty allow to set/get attachment on Channel in the near feature, e.g.
    // channel.getAttribute(new AttributeKey<Endpoint>(TRANSPORT_SENDER))
    endpoints.set(channel, endpoint);
  }
public static void attachEndpointToSession(Channel channel, Endpoint endpoint) {
   
   
   
    endpoints.set(channel, endpoint);
  }
public static void attachendpointtosession(channel channel, endpoint endpoint) { endpoints.set(channel, endpoint); }