@Override public String firstChunk(List<String> chunks){
  if (chunks == null || chunks.size() == 0) {
    return null;
  }
  return chunks.get(0);
}

@ Override public String firstChunk ( List < String > chunks ) { if ( chunks == null || chunks . size ( ) == 0 ) { return null ; } return chunks . get ( 0 ) ; }
takes a list < string > and returns the first element , or null if not present .
