DecodedDataObject obj = Decoder.decode(uri);
if (obj.getPath() == null) {
//create an obj
EndPoint newEp = selector.select(object);
CreateObjectCommand createCmd = new CreateObjectCommand(uri);
CreateObjectAnswer answer = (CreateObjectAnswer)ep.sendMessage(createCmd);
if (answer.getResult()) {
dataObjMgr.update(object, answer.getPath(), answer.getSize());
} else {
s_logger.debug("failed to create object" + answer.getDetails());
throw new CloudRuntimeException("failed to create object" + answer.getDetails());
}
}
return object.getUri();
} catch (URISyntaxException e) {