//if subobject doesn't exist, it will be created
if (!subobjExists)
id = subdao.saveSubObject(docId, objSub);
else
//update the subobject
id = subdao.modifySubObject(docId, objSub);;
String toReturn = "OK - " + id.toString();
return toReturn;
} catch (NumberFormatException e) {
logger.error("NumberFormatException",e);