ConnectionState cs = lookupConnectionState(connectionId);
SessionState ss = cs.getSessionState(sessionId);
if( ss == null )
throw new IllegalStateException("Cannot remove a consumer from a session that had not been registered: "+sessionId);
ConsumerState consumerState = ss.removeConsumer(id);
if( consumerState == null )
throw new IllegalStateException("Cannot remove a consumer that had not been registered: "+id);
broker.removeConsumer(cs.getContext(), consumerState.getInfo());
return null;