}
return response.getPid();
}
public int purge(String pid) {
FedoraResponse response = null;
try {
logger.info("Purge Object: " + pid);
response = FedoraClient.purgeObject(pid).execute(client);
} catch (FedoraClientException e) {
e.printStackTrace();
}
if (response != null) {
return response.getStatus();
} else {
return -1;
}
}