if (this.baseName != null) {
String filePath;
for (Reference ref : getVariantsReferences()) {
// Add the new variant to the result list
Response contextResponse = getDispatcher().get(
ref.toString());
if (contextResponse.getStatus().isSuccess()
&& (contextResponse.getEntity() != null)) {
filePath = ref.toString(false, false).substring(
rootLength);
Representation rep = contextResponse.getEntity();
rep.setIdentifier(baseRef + filePath);
resultSet.add(rep);
}
}
}