IDE-1590 automatically create Data source explorer connection

You have a resource leak.  By overriding the fileInputStream object here, later at the bottom when you close the object you never closed the first one.  So only use local fileInputStreams.