/*
  * (non-Javadoc)
  *
  * @see com.openappengine.bpm.procrepo.IProcessRegistryManager#
  * getProcessInstanceByProcessId(java.lang.String)
  */
 public ProcessDefinition getProcessInstanceByProcessId(String processId)
     throws ProcessRegistryException {
   if (UtilString.isEmptyOrBlank(processId)) {
     throw new ProcessRegistryException("ProcessId cannot be empty.");
   }
   ProcessDefinition processDefinition = ProcessRegistry.getProcessInstanceByProcessId(processId);
   return processDefinition;
 }
 /*
  * (non-Javadoc)
  *
  * @see
  * com.openappengine.bpm.procrepo.IProcessRegistryManager#loadProcessRegistry
  * (java.io.File)
  */
 public void loadProcessRegistry(String file) throws ProcessRegistryException {
   try {
     InputStream inputStream = getClass().getClassLoader().getResourceAsStream(file);
     ProcessDefReader defReader = new ProcessDefReader(inputStream);
     ProcessDefinition processDefinition = defReader.readProcessDefinition();
     ProcessRegistry.registerProcessInstance(processDefinition);
   } catch (Exception e) {
     throw new ProcessRegistryException(e);
   }
 }