383384385386387388389390391392393
public static UUID ParseUUID(String key, OSDMap reply) { OSD osd; if (((osd = reply.get(key)) != null)) return osd.asUUID(); else return new UUID(); } public static UUID ParseUUID(String key, Map reply)
479480481482483484485486487488489
if (array.count() == 1 && array.get(0).getType().equals(OSDType.Map)) { OSDMap map = (OSDMap)array.get(0); OSD folder; if ((folder = map.get(key2))!=null ) return folder.asUUID(); } } return UUID.Zero; }