tested new utility method for getting table by component type.