public void deployOrUpdateProcessDefinition(final InputStream bpmStream,
final ProcessDefinitionConfig cfg,
final ProcessQueueConfig[] queues,
final InputStream imageStream,
final InputStream logoStream) {
withProcessToolContext(new ProcessToolContextCallback() {
@Override
public void withContext(ProcessToolContext processToolContext) {
ProcessToolContext.Util.setThreadProcessToolContext(processToolContext);
try {