facet.alternateDataBodyHash = alternateData.getBodyHash();
if (alternateData.isSetSize())
facet.alternateDataSize = alternateData.getSize();
}
if (resource.isSetAttributes()) {
final ResourceAttributes resourceAttributes = resource.getAttributes();
if (resourceAttributes.isSetAltitude())
facet.altitude = resourceAttributes.getAltitude();
if (resourceAttributes.isSetAttachment())
facet.isAttachment = resourceAttributes.isAttachment();
if (resourceAttributes.isSetCameraMake())
facet.cameraMake = resourceAttributes.getCameraMake();
if (resourceAttributes.isSetCameraModel())
facet.cameraModel = resourceAttributes.getCameraModel();
if (resourceAttributes.isSetFileName())
facet.fileName = resourceAttributes.getFileName();
if (resourceAttributes.isSetLatitude())
facet.latitude = resourceAttributes.getLatitude();
if (resourceAttributes.isSetLongitude())
facet.longitude = resourceAttributes.getLongitude();
if (resourceAttributes.isSetRecoType())
facet.recoType = resourceAttributes.getRecoType();
if (resourceAttributes.isSetSourceURL())
facet.sourceURL = resourceAttributes.getSourceURL();
if (resourceAttributes.isSetTimestamp())
facet.timestamp = resourceAttributes.getTimestamp();
if (resourceAttributes.isSetTimestamp() &&
resourceAttributes.isSetLongitude() &&
resourceAttributes.isSetLatitude()&&
resource.isSetNoteGuid()){
// resource locations are associated with their parent note's guid
addGuestLocation(updateInfo, facet.latitude, facet.longitude, facet.altitude,
facet.timestamp, resource.getNoteGuid());
}