{
assertSessionCreated();
try
{
long fileLength = session.getFileLength(f);
XAFileInputStream xaStream = session.createXAFileInputStream(f);
XAFileInputStreamWrapper xaWrapper = new XAFileInputStreamWrapper(xaStream);
return new AvailableInputStreamWrapper(xaWrapper, (int) fileLength);
}
catch (Exception e)
{