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