@Override public final FileResult close() throws Exception {
  try (WritableByteChannel theChannel=channel){
    LOG.debug("Writing footer to {}.",filename);
    writeFooter();
  }
   FileResult result=new FileResult(filename);
  LOG.debug("Result for bundle {}: {}",this.id,filename);
  return result;
}

@ Override public final FileResult close ( ) throws Exception { try ( WritableByteChannel theChannel = channel ) { LOG . debug ( "Writing footer to {}." , filename ) ; writeFooter ( ) ; } FileResult result = new FileResult ( filename ) ; LOG . debug ( "Result for bundle {}: {}" , this . id , filename ) ; return result ; }
closes the channel and returns the bundle result .
