BS-11271: Clean code, use genericity
BS-11271: If diagram not in a resource or diagram not found, just don't
export th ebpmn file.