String device = (String) info.getAttributes().get("file-handler");
if(device != null) {
try {
RegistryContext ctx = new RegistryContext();
VFSFileHandlerFactory f = (VFSFileHandlerFactory) ctx.lookup(device);
delegate = f.getInputStream(info);
} catch(IOException ex) {
throw ex;
} catch(Exception ex) {
IOException exout = new IOException("File handler initialization failed: ");
exout.initCause(ex);