public void removeDuplicateBinding() {
		List<Bw> bwServices = this.getBWServices();

		for (Bw bw : bwServices) {
			boolean first = true;
			
			List<Binding> bindings = bw.getBindings().getBinding();
			for (Iterator<Binding> iterator = bindings.iterator(); iterator.hasNext();) {
				Binding binding = (Binding) iterator.next();

				if (!first && binding.getName().equals("")) {
					iterator.remove();
				}
				first = false;
			}
		}

		List<Adapter> adapterServices = this.getAdapterServices();

		for (Adapter adapter : adapterServices) {
			boolean first = true;

			List<Binding> bindings = adapter.getBindings().getBinding();
			for (Iterator<Binding> iterator = bindings.iterator(); iterator.hasNext();) {
				Binding binding = (Binding) iterator.next();

				if (!first && binding.getName().equals("")) {
					iterator.remove();
				}
				first = false;
			}
		}
	}
public void removeDuplicateBinding() {
		List<Bw> bwServices = this.getBWServices();

		for (Bw bw : bwServices) {
			boolean first = true;
			
			List<Binding> bindings = bw.getBindings().getBinding();
			for (Iterator<Binding> iterator = bindings.iterator(); iterator.hasNext();) {
				Binding binding = (Binding) iterator.next();

				if (!first && binding.getName().equals("")) {
					iterator.remove();
				}
				first = false;
			}
		}

		List<Adapter> adapterServices = this.getAdapterServices();

		for (Adapter adapter : adapterServices) {
			boolean first = true;

			List<Binding> bindings = adapter.getBindings().getBinding();
			for (Iterator<Binding> iterator = bindings.iterator(); iterator.hasNext();) {
				Binding binding = (Binding) iterator.next();

				if (!first && binding.getName().equals("")) {
					iterator.remove();
				}
				first = false;
			}
		}
	}
public void removeDuplicateBinding ( ) { List < Bw > bwServices = this . getBWServices ( ) ; for ( Bw bw : bwServices ) { boolean first = true ; List < Binding > bindings = bw . getBindings ( ) . getBinding ( ) ; for ( Iterator < Binding > iterator = bindings . iterator ( ) ; iterator . hasNext ( ) ; ) { Binding binding = ( Binding ) iterator . next ( ) ; if ( ! first && binding . getName ( ) . equals ( "" ) ) { iterator . remove ( ) ; } first = false ; } } List < Adapter > adapterServices = this . getAdapterServices ( ) ; for ( Adapter adapter : adapterServices ) { boolean first = true ; List < Binding > bindings = adapter . getBindings ( ) . getBinding ( ) ; for ( Iterator < Binding > iterator = bindings . iterator ( ) ; iterator . hasNext ( ) ; ) { Binding binding = ( Binding ) iterator . next ( ) ; if ( ! first && binding . getName ( ) . equals ( "" ) ) { iterator . remove ( ) ; } first = false ; } } }
<p>
This will remove from the XML the second duplicate default binding (with
empty name attribute) to keep only the first one.
This is is because "AppManage -export -max" exports two empty bindings
to prepare fault tolerance configuration.
</p>
<p > This will remove from the XML the second duplicate default binding ( with empty name attribute ) to keep only the first one . This is is because AppManage - export - max exports two empty bindings to prepare fault tolerance configuration . < / p >