try {
version = new Long(process.getVersion());
} catch (NumberFormatException e) {
// Do nothing, keep version 0
}
ProcessDefinitionRef result = new ProcessDefinitionRef(
process.getId(), process.getName(), version);
result.setPackageName(process.getPackageName());
result.setDeploymentId("N/A");
return result;
}