Object serviceLocator = serviceLocatorClass.newInstance();
if (serviceLocator instanceof IPreservationActionRegistry) {
IPreservationActionRegistry locator = null;
locator = (IPreservationActionRegistry) serviceLocator;
locator.connect(registry.getUrl());
return locator;
} else
throw new IllegalArgumentException("schema " + registry.getType()
+ " is not a IPreservationActionRegistry.");
} catch (IllegalArgumentException e) {