@Override public void finish(){
  for (  Entry<String,FileChannel> entry : fileNameAndStreamCache.entrySet()) {
    try {
      FileChannel channel=entry.getValue();
      if (null != channel) {
        channel.close();
      }
    }
 catch (    IOException exception) {
      LOGGER.error(exception,exception.getMessage());
    }
  }
}

@ Override public void finish ( ) { for ( Entry < String , FileChannel > entry : fileNameAndStreamCache . entrySet ( ) ) { try { FileChannel channel = entry . getValue ( ) ; if ( null != channel ) { channel . close ( ) ; } } catch ( IOException exception ) { LOGGER . error ( exception , exception . getMessage ( ) ) ; } } }
this method will be used to close all the streams currently present in the cache
