String visibility = (String)hm.get("visibility");
if (! userAuthorized && (visibility == null || !visibility.equals("PUBLIC"))) {
// if the record is not public, AND the authorization check
// failed at the top of this method, NOW throw an AuthFailed exception
throw new AuthorizationFailedException("File - getFile");
}
flvo.setFileId(((Number)hm.get("FileID")).intValue());
flvo.setTitle((String)hm.get("Title"));
flvo.setName((String)hm.get("Name"));