code: public boolean isChildOf(NameSpace parent) {
          return null != this.getParent() && (
                  this.getParent().equals(parent)
               || this.getParent().isChildOf(parent));
      }
docs: Check if this namespace is a child of the given namespace.
  @param parent the possible parent
  @return true if this is child of parent