Index: jbpm4jsf/src/main/java/org/jbpm/jsf/core/action/DeployProcessActionListener.java =================================================================== --- jbpm4jsf/src/main/java/org/jbpm/jsf/core/action/DeployProcessActionListener.java (revision 5389) +++ jbpm4jsf/src/main/java/org/jbpm/jsf/core/action/DeployProcessActionListener.java (working copy) @@ -55,8 +55,8 @@ try { ZipInputStream zis = new ZipInputStream(inputStream); try { + final JbpmContext jbpmContext = context.getJbpmContext(); processDefinition = ProcessDefinition.parseParZipInputStream(zis); - final JbpmContext jbpmContext = context.getJbpmContext(); jbpmContext.deployProcessDefinition(processDefinition); } finally { try {