Assert.isNotNull(input);
if (input instanceof ObjectNameNode) {
ObjectNameNode node = (ObjectNameNode) input;
MBeanInfoWrapper wrapper = node.getMbeanInfoWrapper();
return new MBeanEditorInput(wrapper);
}
if (input instanceof MBeanInfoWrapper) {
MBeanInfoWrapper wrapper = (MBeanInfoWrapper) input;
return new MBeanEditorInput(wrapper);
}
if (input instanceof MBeanFeatureInfoWrapper) {
MBeanFeatureInfoWrapper wrapper = (MBeanFeatureInfoWrapper) input;
return new MBeanEditorInput(wrapper.getMBeanInfoWrapper());
}
return null;
}