for(int i=0;i<customFileAccess.length;i++){
if(ResourceUtil.isChildOf(res,customFileAccess[i])) return;
}
}
if(isValid(config,serverPassword) || isAdminContext()) return;
throw new SecurityException(createExceptionMessage(res,true),"access is prohibited by security manager");
}
// None
if(isValid(config,serverPassword)) return;
// custom
if(!ArrayUtil.isEmpty(customFileAccess)){
res=ResourceUtil.getCanonicalResourceEL(res);
for(int i=0;i<customFileAccess.length;i++){
if(ResourceUtil.isChildOf(res,customFileAccess[i])) return;
}
}
if(isAdminContext()) return;
throw new SecurityException(createExceptionMessage(res,false),"access is prohibited by security manager");
}