* @return
*/
private RecordRetrievalResult constructObject(String recordUri, Node node)
{
// Get RecordRetrievalResult Object from JAXB ObjectFactory
RecordRetrievalResult result = new ObjectFactory().createRecordRetrievalResult();
// If node is not null add to Payload Object
// else add to Empty Object
if (node != null)
{
Payload payload = new Payload();
List<Object> payloads = payload.getAny();
payloads.add(node);
result.setPayload(payload);
} else {
Empty empty = new Empty();
result.setEmpty(empty);
}
// set RecordUri to RecordRetrievalResult Object
result.setRecordUri(recordUri);
// return result
return result;
}