public Object getInstance(String name, Class type) throws IllegalParameterException {
if ((!GRAPHICAL_EDITOR_NAME.equals(name)) || (!FComponent.class.equals(type))) {
throw new IllegalParameterException("IllegalParameterException");
}
Object value = getContext().getValue(DRAWING_ARRAY_CONTEXT);
GraphicalEditor graphicalEditor;
GraphicalEditorUI graphicalEditorUI;
DrawingViewContainer drawingViewContainer;
ActionMap actionMap;
DropTargetListener dropTargetListener;
ElementLocator elementLocator;
if (value == null) {
graphicalEditor = createGraphicalEditor();
} else {
if (!value.getClass().isArray()) {
throw new IllegalParameterException("IllegalParameterException");
}
Object[] objects = (Object[]) value;
if (!(objects instanceof Drawing[])) {
throw new IllegalParameterException("IllegalParameterException");
}
Drawing[] drawings = (Drawing[]) objects;
graphicalEditor = createGraphicalEditor(drawings);