private void shutdown(){
  if (nbestListWriter != null) {
    logger.info("Closing n-best writer");
    nbestListWriter.close();
  }
  if (alignmentWriter != null) {
    logger.info("Closing alignment writer");
    alignmentWriter.close();
  }
}

private void shutdown ( ) { if ( nbestListWriter != null ) { logger . info ( "Closing n-best writer" ) ; nbestListWriter . close ( ) ; } if ( alignmentWriter != null ) { logger . info ( "Closing alignment writer" ) ; alignmentWriter . close ( ) ; } }
free resources and cleanup .
