public void handlePut() {
//TODO: this only handles granule timestamps at the moment, expand to handle more
JSONObject obj = (JSONObject) getFormatPostOrPut().toObject(getRequest().getEntity());
FileData file = lookupFile();
if (file instanceof SpatialFile) {
SpatialFile sf = (SpatialFile) file;
if (sf instanceof Granule) {
Granule g = (Granule) sf;
if (obj.has("timestamp")) {
String ts = obj.getString("timestamp");
try {