camunda/camunda-bpmn-model — pull request #3 by meyerdan (2014-03-24 12:59:14+00:00)
Title: feat(model): auto-cast return of getModelElementById

Auto-cast the return value of getModelElementById() to the desired
subtype of ModelElementInstance.

Makes it possible to write

Animal a = modelInstance.getModelElementById("a");

instead of

Animal a = (Animal) modelInstance.getModelElementById("a");