@Override
@NotNull
protected PsiElement[] invokeDialog(Project project, PsiDirectory directory) {
ActionRunnableImpl actionRunnable = new ActionRunnableImpl(project, directory, WicketTemplates.WICKET_PAGE_HTML);
CreatePageDialog dialog = new CreatePageDialog(project, actionRunnable, getCommandName(), directory);
dialog.show();
return actionRunnable.getCreatedElements();
}