*
* @param internal the 2005/08 AttributedURIType
* @return an equivalent 2004/08 AttributedURI
*/
public static AttributedURI convert(AttributedURIType internal) {
AttributedURI exposed =
Names200408.WSA_OBJECT_FACTORY.createAttributedURI();
String exposedValue =
Names.WSA_ANONYMOUS_ADDRESS.equals(internal.getValue())
? Names200408.WSA_ANONYMOUS_ADDRESS
: Names.WSA_NONE_ADDRESS.equals(internal.getValue())
? Names200408.WSA_NONE_ADDRESS
: internal.getValue();
exposed.setValue(exposedValue);
putAll(exposed.getOtherAttributes(), internal.getOtherAttributes());
return exposed;
}