if (sample == null) {
return null;
}
FormatInfo formatInfo = sample.getFormatInfo();
PreservationActionRegistryDefinition reg = (PreservationActionRegistryDefinition) registry;
try {
availableActions.clear();
List<PreservationActionDefinition> actions = queryRegistry(formatInfo, reg);
availableActions.addAll(actions);
// this registry is responsible for the result - mark it as selected
for (PreservationActionRegistryDefinition r: registrySelection.keySet()) {
registrySelection.put(r, (registry == r) );
}
} catch (PlatoServiceException e) {
log.error(e.getMessage(),e);
FacesMessages.instance().add(FacesMessage.SEVERITY_ERROR,
"Failed to look up services of: " + reg.getShortname()
+ ": " + e.getMessage());
}
return null;
}