}
public String read(String sourceUri) throws IOException {
LOGGER.finer("Reading metadata of source URI: \"" +sourceUri+ "\" through proxy: "+this);
try {
HarvestMetadataRequest harvestMetadataRequest = new HarvestMetadataRequest();
harvestMetadataRequest.setService(info.newService());
harvestMetadataRequest.setCredentials(info.newCredentials());
harvestMetadataRequest.executeHarvest(sourceUri);
String md = harvestMetadataRequest.getMetadata();
if (md.length()==0) {
LOGGER.finer("Reading metadata of source URI: \"" +sourceUri+ "\" through proxy: "+this+"; Received no METADATA response.");
return "";
}