private static PortType getFirstPortType(Definition wsdl) {
return (PortType) wsdl.getPortTypes().values().iterator().next();
}
public static MetadataDescriptor merge(String wsdlLocation, QName interfaceName, MetadataDescriptor[] metadatas) {
SimpleMetadataDescriptor mergedMetadata = new SimpleMetadataDescriptor(METADATA_NAME, wsdlLocation, interfaceName);
for(int i=0; i < metadatas.length; i++) {
copyMetadata(metadatas[i], mergedMetadata);
}