private static Object unWrapNS(Object o) {
    if (o instanceof NamespaceContainer) {
      return ((NamespaceContainer)o).getNamespace();
    }
    return o;
  }
private static Object unWrapNS(Object o)