Beispiel #1
0
 /**
  * Same story, need to be able to replace NamespaceContainer instances with Namespace content.
  *
  * @param results A list potentially containing NamespaceContainer instances
  * @return The parameter list with NamespaceContainer instances replaced by the wrapped Namespace
  *     instances.
  */
 @SuppressWarnings({"rawtypes", "unchecked"})
 private static final List unWrap(List results) {
   for (ListIterator it = results.listIterator(); it.hasNext(); ) {
     Object o = it.next();
     Object p = unWrapNS(o);
     if (o != p) {
       it.set(p);
     }
   }
   return results;
 }