securityManager.checkFileLocation(pageContext.getConfig(),file,serverPassword);
if(!file.exists()) {
if(create) {
Resource parent=file.getParentResource();
if(parent!=null && !parent.exists()) {
if(createParent) parent.mkdirs();
else throw new ApplicationException("parent directory for ["+file+"] doesn't exist");
}
try {
file.createFile(false);
} catch (IOException e) {