if(model == null) {
// if(context.getModel() != null){
// model = context.getModel();
// } else {
LogService.error("createEditPart: EditPart was null");
return new UnknownNodeEditPart();
// }
}
if (model instanceof MusicDiagram)
child = new MusicDiagramEditPart();
else if (model instanceof MusicContainerForm)
child = new MusicContainerEditPart();
else if (model instanceof UnknownMeiNodeForm)
child = new UnknownNodeEditPart();
// else if (model instanceof MusicTerminalForm)
// child = new UnknownNodeEditPart();
// else LogService.error("no editPart created for model " + model.getClass().getName());
child.setModel(model);
return child;