public NamespaceSupport(NamespaceContext context){
  pushContext();
  Enumeration prefixes=context.getAllPrefixes();
  while (prefixes.hasMoreElements()) {
    String prefix=(String)prefixes.nextElement();
    String uri=context.getURI(prefix);
    declarePrefix(prefix,uri);
  }
}

public NamespaceSupport ( NamespaceContext context ) { pushContext ( ) ; Enumeration prefixes = context . getAllPrefixes ( ) ; while ( prefixes . hasMoreElements ( ) ) { String prefix = ( String ) prefixes . nextElement ( ) ; String uri = context . getURI ( prefix ) ; declarePrefix ( prefix , uri ) ; } }
constructs a namespace context object and initializes it with the prefixes declared in the specified context .
