+ public static Collection<?> getChildrenCollection(final Object o) {
+ Object value = get(o, "children");
+ if(value==null) {
+ return Collections.emptyList();
+ }
+ if(value instanceof Map) {
+ return ((Map<?,?>)value).values();
+ } else
+ if(value instanceof Collection){
+ return (Collection<?>)value;
+ }else{
+ XSQLAdapter.log("Unknown Child Value Type="+value.getClass().getName());
+ return new ArrayList();
+ }
+ }
+
+ public static Object getValue(final Object o) {