GetMethod call = helper.createGetMethod(helper.getRestBaseUrl());
try {
helper.setAuth(client, call);
call.addRequestHeader("Accept", "application/xml");
client.executeMethod(call);
PackageListDTO dto = helper.jaxbTransformation(PackageListDTO.class,
call.getResponseBodyAsStream(),
PackageListDTO.RELATED_CLASSES);
String processUrl = null;
String format = null;
PackageDTO pkg = dto.getSelectedPackage(packageName);
for (String url : pkg.getAssets()) {
GetMethod subCall = helper.createGetMethod(url);
try {
helper.setAuth(client, subCall);
subCall.addRequestHeader("Accept", "application/xml");