Use getInterfaceNames instead of manually computing the interfaces provided by object