public static SinkRunner forSink(Sink sink) {
SinkRunner runner = null;
if (sink instanceof PollableSink) {
runner = new PollableSinkRunner();
((PollableSinkRunner) runner).setSink((PollableSink) sink);
} else {
throw new IllegalArgumentException("No known runner type for sink "
+ sink);
}