// add this key to the map
FrameBuffer frameBuffer = processorFactory_.isAsyncProcessor() ?
new CustomAsyncFrameBuffer(client, clientKey,SelectAcceptThread.this) :
new CustomFrameBuffer(client, clientKey,SelectAcceptThread.this);
clientKey.attach(frameBuffer);
} catch (TTransportException tte) {
// something went wrong accepting.
LOGGER.warn("Exception trying to accept!", tte);
tte.printStackTrace();
if (clientKey != null) cleanupSelectionKey(clientKey);