// throw exception only if there's already a subscription as start event
if(eventSubscriptionEntity.getProcessInstanceId()==null||eventSubscriptionEntity.getProcessInstanceId().isEmpty()){// processInstanceId != null or not empty -> it's a message related to an execution
// the event subscription has no instance-id, so it's a message start event
thrownewActivitiException("Cannot deploy process definition '"+processDefinition.getResourceName()
+"': there already is a message event subscription for the message with name '"+messageEventDefinition.getMessageRef()+"'.");