private void setupProperties() { // derby is picky about rereading blobs in the entityManager, so we need // to get the blob data again here final DeploymentImpl deployment = (DeploymentImpl) hibernateSession.get(DeploymentImpl.class, deploymentId); // setup some properties final Set<DeploymentProperty> properties = deployment.getObjectProperties(); final Iterator<DeploymentProperty> iter = properties.iterator(); while (iter.hasNext()) { final DeploymentProperty prop = iter.next(); if (StringUtils.equals(DeploymentImpl.KEY_PROCESS_DEFINITION_ID, prop.getKey())) { pdId = prop.getStringValue(); } else if (StringUtils.equals(DeploymentImpl.KEY_PROCESS_DEFINITION_KEY, prop.getKey())) { pdKey = prop.getStringValue(); } else if (StringUtils.equals(DeploymentImpl.KEY_PROCESS_DEFINITION_VERSION, prop.getKey())) { pdVersion = prop.getLongValue(); } } }