public void frameAdded(SpdyStreamSinkChannel addedFrame, List<SpdyStreamSinkChannel> pendingFrames, Deque<SpdyStreamSinkChannel> holdFrames) {
Iterator<SpdyStreamSinkChannel> it = pendingFrames.iterator();
while (it.hasNext()){
SpdyStreamSinkChannel pending = it.next();
if(pending instanceof SpdyStreamStreamSinkChannel) {
SendFrameHeader header = ((SpdyStreamStreamSinkChannel) pending).generateSendFrameHeader();
if(header.getByteBuffer() != null) {
pendingFrames.add(pending);
it.remove();
}
}
}