* @throws ItemNotFoundException
* @throws RepositoryException
*/
public WorkflowExecution retrieveWorkflowExecution(String id) throws ItemNotFoundException, RepositoryException {
log.fine("JCRManager.retrieveWorkflowExecution()");
WorkflowExecution _retVal = null;
try {
this.getSession();
Node _defNode = session.getNodeByUUID(id);
Property _propId = _defNode.getProperty("id");
Property _propUser = _defNode.getProperty("userName");
Property _propWorkflowId = _defNode.getProperty("workflowId");
_retVal = new WorkflowExecution(_propId.getString(), _propUser.getString());
_retVal.setWorkflowId(_propWorkflowId.getString());
} finally {
log.fine("logging out session");
session.logout();
}