Class<?> theClass = XTypesMapper.getInstance().getInterfaceForType( type );
if ( theClass == null )
{
theClass = J2EETypesMapper.getInstance().getInterfaceForType( type );
}
if ( theClass == null )
{
throw new IllegalArgumentException( "Can't find interface for: " + type );
}
assert( AMX.class.isAssignableFrom( theClass ) ):
"WARNING: mbean does not implement AMX: " + theClass.getName();
return( theClass );