public <T> OutputSelector<T> getOutputSelector() {
try {
return SerializationUtils.deserialize(config.getBytes(OUTPUT_SELECTOR, null));
} catch (Exception e) {
throw new StreamVertexException("Cannot deserialize and instantiate OutputSelector", e);
}
}