if (setSpec.matches(communityPattern))
pattern = communityPattern;
else if (setSpec.matches(collectionPattern))
pattern = collectionPattern;
else
throw new InvalidSetSpecException("Unknown set spec");
Matcher matcher = Pattern.compile(pattern).matcher(setSpec);
String handle_prefix = matcher.group(1);
String local_id = matcher.group(2);
try {
return handleResolver.resolve(handle_prefix + "/" + local_id);
} catch (HandleResolverException e) {
throw new InvalidSetSpecException(e);
}
}