final String filename = path == null ? actionClass.getName() + "-validation.xml" : actionClass.getName() + "-" + path + "-validation.xml";
final PsiElement psiElement = FileTemplateUtil.createFromTemplate(validationTemplate, filename, null, packageDirectoryInSourceRoot);
NavigationUtil.activateFileWithPsiElement(psiElement, true);
}
catch (Exception e) {
throw new IncorrectOperationException("error creating validation.xml", (Throwable)e);
}
}