DescriptionElement def,
PrintWriter pw)
throws WSDLException{
if (extensibilityElements != null){
for(int ind=0;ind<extensibilityElements.length;ind++){
ExtensionElement ext =extensibilityElements[ind];
QName elementType = ext.getExtensionType();
ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
if (extReg == null){
throw new WSDLException(WSDLException.CONFIGURATION_ERROR,
"No ExtensionRegistry set for this " +
"Description, so unable to serialize a '" +