File f = new File(templatePath);
if (!f.exists()) {
if (templatePathUNC != null && templatePathUNC.length() > 0) {
// Try to find the template file using the UNC path.
NetworkDriveList networkDriveList = new NetworkDriveList();
String altTemplatePath = networkDriveList.fromUNCName(
templatePathUNC);
if (altTemplatePath != null)
f = new File(altTemplatePath);
else
f = new File(templatePathUNC);