use thread classloader to get the configuration