} else if (ConnectionType.NETTY_TCP.getValue().equalsIgnoreCase(key)) {
return new NettyTcpEndpoint();
} else if (ConnectionType.NETTY_WEB.getValue().equalsIgnoreCase(key)) {
return new NettyWebEndpoint();
} else if (ConnectionType.NETTY_PROXY_HTTP.getValue().equalsIgnoreCase(key)) {
return new NettyTcpProxyEndpoint();
} else {
LOGGER.fatal("key : " + key + " not found!");
throw new InvalidParameterException("key : " + key + " not found!");
}
}