@SuppressWarnings("rawtypes")
public static Map<String, Tap> makeSinkMap(Tap statusSink, Tap fetchedSink) {
HashMap<String, Tap> result = new HashMap<String, Tap>(2);
if (statusSink == null) {
statusSink = new NullSinkTap(StatusDatum.FIELDS);
}
if (fetchedSink == null) {
fetchedSink = new NullSinkTap(FetchedDatum.FIELDS);
}
result.put(STATUS_PIPE_NAME, statusSink);
result.put(CONTENT_PIPE_NAME, fetchedSink);