List<Type> outputTypes = new ArrayList<Type>();
for (TypedField field : mFlumeInputFields) {
outputTypes.add(field.getType());
}
Type streamType = new StreamType(outputTypes);
StreamSymbol streamSym = new StreamSymbol(mFlumeNodeName, StreamSourceType.Node,
streamType, mFlumeNodeName, true, mOutputFields, formatSpec);
if (!streamSym.getEventParser().validate(streamSym)) {
throw new IOException("Could not create valid stream for schema");
}