clear();
if (obj instanceof LinkedHashMap) {
LinkedHashMap json = (LinkedHashMap) obj;
for (Entry<String, Object> entry : ((Map<String, Object>)json).entrySet()) {
Namespace nmspc = new Namespace();
nmspc.setNamespace(entry.getKey());
if (entry.getValue() instanceof LinkedList) {
for (Object path : (LinkedList)entry.getValue()) {
nmspc.add((String)path);
}
} else {
nmspc.add((String)entry.getValue());
}
add(nmspc);
}
}
}