if (fs == null)
throw new FileNotFoundException("No file system for "+filename);
if ((fs.capabilities() & FSCapability.READ) == 0)
throw new IOException("File system not supporting reads for "+ filename);
InputStream rtr = fs.openFileStream(filename);
for(Pattern regex : inputStreamMap.keySet())
{
if (regex.matcher(filename).matches())
{
Class<? extends InputStream> filterClass = inputStreamMap.get(regex);