public JiraWorkflow copyWorkflow(final JiraServiceContext jiraServiceContext, final String clonedWorkflowName, final String clonedWorkflowDescription, final JiraWorkflow workflowToClone) { if (!hasAdminPermission(jiraServiceContext)) { jiraServiceContext.getErrorCollection().addErrorMessage(getI18nBean().getText("admin.workflows.service.error.no.admin.permission")); return null; } return workflowManager.copyWorkflow(jiraServiceContext.getLoggedInApplicationUser(), clonedWorkflowName, clonedWorkflowDescription, workflowToClone); }