ScriptBasedMapping.class,
DNSToSwitchMapping.class);
try {
Constructor<? extends DNSToSwitchMapping> dnsToSwitchMappingConstructor
= dnsToSwitchMappingClass.getConstructor();
DNSToSwitchMapping newInstance =
dnsToSwitchMappingConstructor.newInstance();
// Wrap around the configured class with the Cached implementation so as
// to save on repetitive lookups.
// Check if the impl is already caching, to avoid double caching.
dnsToSwitchMapping =