if (dObj == null) {
throw new NullPointerException("No deployable object supplied to configure");
}
ModuleConfigurer configurer = moduleConfigurers.get(dObj.getType());
if (configurer == null) {
throw new InvalidModuleException("No configurer for module type: " + dObj.getType() + " registered");
}
return configurer.createConfiguration(dObj);
}