@When("^updating a document template with name '(.*)' to name '(.*)'$")
public void updating_a_document_template_with_name_before_to_name_After(String templateBefore, String templateAfter)
throws Throwable {
assertTrue("Was not at Show document template page", showPage != null && showPage.isDisplayed());
DocumentTemplateListPage listPage = showPage.openListDocumentTemplatesPage();
DocumentTemplateEditPage editPage =
listPage.openShowDocumentTemplatePage(templateBefore)
.openEditDocumentTemplatePage();
showPage = editPage.updateName(templateAfter);
}