if ( ! config.type().equals( "domain" ) ) // hard-coded type, we can't import Domain.class here
{
// verify that all its ancestors are also AMXConfig
// Do a quick check, ultimately if all AMXConfig have an AMXConfig as a parent,
// then they all have DomainConfig as a parent.
if ( ! AMXConfigProxy.class.isAssignableFrom(config.parent().extra().genericInterface() ) )
{
problems.add("AMXConfig MBean is not a descendant of Domain: " + config.objectName() + ", it has parent " + config.getParent() );
}
}