EditorViewFactory[] editorFactories = EditorViewFactoryRegistry.getInstance().getFactoriesOfType(
ResponseEditorViewFactory.class);
for (EditorViewFactory factory : editorFactories) {
ResponseEditorViewFactory f = (ResponseEditorViewFactory) factory;
XmlEditorView editorView = (XmlEditorView) f.createResponseEditorView(this, modelItem);
if (editorView != null) {
addEditorView((EditorView<T2>) editorView);
}
}
InspectorFactory[] inspectorFactories = InspectorRegistry.getInstance().getFactoriesOfType(
ResponseInspectorFactory.class);
for (InspectorFactory factory : inspectorFactories) {
ResponseInspectorFactory f = (ResponseInspectorFactory) factory;
XmlInspector inspector = (XmlInspector) f.createResponseInspector(this, modelItem);
if (inspector != null) {
addInspector((EditorInspector<T2>) inspector);
}
}
}