throw new XMLDBException(ErrorCodes.PERMISSION_DENIED, e.getMessage(), e);
} catch(final EXistException e) {
throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, "Error while retrieving resource: " + e.getMessage(), e);
} finally {
if(collection != null) {
collection.release(Lock.READ_LOCK);
}
brokerPool.release(broker);
brokerPool.setSubject(subject);
}
}