public void deployProcessDefinition(@WebParam(name="cfgXmlFile")final byte[] cfgXmlFile,
@WebParam(name="queueXmlFile")final byte[] queueXmlFile,
@WebParam(name="processMapDefinition")final byte[] processMapDefinition,
@WebParam(name="processMapImageStream")final byte[] processMapImageStream,
@WebParam(name="logo")final byte[] logo) {
withContext(new ReturningProcessToolContextCallback() {
@Override
public Object processWithContext(ProcessToolContext ctx) {
ctx.getRegistry().deployOrUpdateProcessDefinition(
new ByteArrayInputStream(processMapDefinition),
new ByteArrayInputStream(cfgXmlFile),