private IDiagramEditorFactory getDiagramEditorFactory() {
   ProjectAccessor projectAccessor = getProjectAccessor();
   IDiagramEditorFactory diagramEditorFactory = projectAccessor.getDiagramEditorFactory();
   if (diagramEditorFactory == null)
     throw new IllegalStateException("diagramEditorFactory must not be null.");
   return diagramEditorFactory;
 }
 private IModelEditorFactory getModelEditorFactory() {
   ProjectAccessor projectAccessor = getProjectAccessor();
   IModelEditorFactory modelEditorFactory = projectAccessor.getModelEditorFactory();
   if (modelEditorFactory == null)
     throw new IllegalStateException("modelEditorFactory must not be null.");
   return modelEditorFactory;
 }
 private IModel initProject() {
   try {
     if (this.project == null) {
       this.project = projectAccessor.getProject();
     }
   } catch (ProjectNotFoundException e) {
     throw new RuntimeException(e);
   }
   return this.project;
 }