* @throws NoFactoryForConfigException
* if a factory cannot be found that accepts the
* {@link Configuration} type
*/
private static RiakClientFactory getFactory(final Configuration config) {
final RiakClientFactory fac = REGISTRY.get(config.getClass());
if (fac == null) {
throw new NoFactoryForConfigException(config.getClass());
}
return fac;
}