public SelectedVariant retrieveBestObject(
SelectionContext context,
RuntimePolicyReference reference,
EncodingCollection requiredEncodings) {
PolicyFetcher fetcher = context.getPolicyFetcher();
// Get the policy, if it could not be found then return immediately.
// There is no need to cache the fact that it could not be found as
// that will already have been done in a lower level accessor.
ActivatedVariablePolicy policy = (ActivatedVariablePolicy)
fetcher.fetchPolicy(reference);
if (policy == null) {
return null;
}
// Cache selection.