private Flow secondFlow( String name, Tap source )
{
Pipe pipe = new Pipe( name );
pipe = new Each( pipe, new RegexSplitter( new Fields( "first", "second", "third", "fourth" ), "\\." ) );
pipe = new Each( pipe, new FieldJoiner( new Fields( "mangled" ), "-" ) );
Tap sink = getPlatform().getTabDelimitedFile( new Fields( "mangled" ), getOutputPath( name ), SinkMode.REPLACE );
return getPlatform().getFlowConnector().connect( source, sink, pipe );
}