* if the registry is not properly configured
*/
public List<IServiceInfo> queryRegistry(FormatInfo formatInfo, PreservationActionRegistryDefinition registry)
throws PlatoException {
log.debug("Loading preservation action services from registry [{}]", registry.getShortname());
IPreservationActionRegistry serviceLocator = null;
try {
serviceLocator = PreservationActionRegistryFactory.getInstance(registry);
} catch (IllegalArgumentException e1) {
throw new PlatoException("Registry: " + registry.getShortname()
+ " has changed and needs to be reconfigured.");
}
if (serviceLocator == null) {
throw new PlatoException("Failed to access " + registry.getShortname());
}
return serviceLocator.getAvailableActions(formatInfo);
}