if ((location != null) && (location.length() > 0)) {
uploadedFilesDir = location;
}
else {
MultiPartConfig facesServletMultiPartConfig = getFacesServletMultiPartConfig(externalContext);
if (facesServletMultiPartConfig != null) {
uploadedFilesDir = facesServletMultiPartConfig.getLocation();
}
if (uploadedFilesDir == null) {
uploadedFilesDir = WebConfigParam.UploadedFilesDir.getStringValue(externalContext);
}