GetMethod subCall = helper.createGetMethod(url);
try {
helper.setAuth(client, subCall);
subCall.addRequestHeader("Accept", "application/xml");
client.executeMethod(subCall);
AssetDTO subDto = helper.jaxbTransformation(AssetDTO.class,
subCall.getResponseBodyAsStream(),
AssetDTO.RELATED_CLASSES);
if (subDto.getMetadata().getUuid().equals(uuid)) {
processUrl = subDto.getSourceLink();
format = subDto.getMetadata().getFormat();
break;
}
} finally {
subCall.releaseConnection();
}