assert arguments != null;
ResourceProvider provider = resource.createProvider();
ResourceManipulator manipulator = provider.createManipulator(arguments);
if (manipulator instanceof Configurable) {
LOG.debug("Configuring resource manipulator: {}", manipulator);
ConfigurationFactory configuration = ConfigurationFactory.getDefault();
((Configurable) manipulator).setConf(configuration.newInstance());
}
return manipulator;
}