record.setId(uuid);
LOG.finer("GetRecordByID: Transforming intermidiate xml to populate xml " +
"into csw Record");
this.readIntermidiateGetRecordById(responseStr, record);
if (record == null) {
throw new NullReferenceException("Record not populated.");
}
// check if full metadata or resourceURL has been returned
boolean hasFullMetadata = !(record.getFullMetadata() == null || record
.getFullMetadata() == "");
boolean hasResourceUrl = !(record.getMetadataResourceURL() == null || record