Implement class lookup in autoconfig