*
* @return The list of variants references
*/
private ReferenceList getVariantsReferences() {
this.uniqueReference = null;
final ReferenceList result = new ReferenceList(0);
try {
final Request contextCall = new Request(Method.GET, this.targetUri);
// Ask for the list of all variants of this resource
contextCall.getClientInfo().getAcceptedMediaTypes().add(
new Preference<MediaType>(MediaType.TEXT_URI_LIST));
final Response contextResponse = getClientDispatcher().handle(
contextCall);
if (contextResponse.getEntity() != null) {
// Test if the given response is the list of all variants for
// this resource
if (MediaType.TEXT_URI_LIST.equals(contextResponse.getEntity()
.getMediaType())) {
final ReferenceList listVariants = new ReferenceList(
contextResponse.getEntity());
Set<String> extensions = null;
String entryUri;
String fullEntryName;
String baseEntryName;