Created the get_instance() function to return the appropriate class instance.
Authored by: bugman 2007-12-09
Parent: [r4159]
Child: [r4161]