public void resolveTwoWayBindings(){
  completeTwoWayBindings();
  Map<String,BindingExpression> destinationMap=new HashMap<String,BindingExpression>();
  for (  BindingExpression bindingExpression : bindingExpressions) {
    String sourceExpression=TextGen.stripParens(bindingExpression.getSourceExpression());
    String destinationPath=bindingExpression.getDestinationPath(false);
    BindingExpression match=destinationMap.get(sourceExpression);
    if ((match != null) && destinationPath.equals(TextGen.stripParens(match.getSourceExpression()))) {
      bindingExpression.setTwoWayCounterpart(match);
    }
 else {
      destinationMap.put(destinationPath,bindingExpression);
    }
  }
}

public void resolveTwoWayBindings ( ) { completeTwoWayBindings ( ) ; Map < String , BindingExpression > destinationMap = new HashMap < String , BindingExpression > ( ) ; for ( BindingExpression bindingExpression : bindingExpressions ) { String sourceExpression = TextGen . stripParens ( bindingExpression . getSourceExpression ( ) ) ; String destinationPath = bindingExpression . getDestinationPath ( false ) ; BindingExpression match = destinationMap . get ( sourceExpression ) ; if ( ( match != null ) && destinationPath . equals ( TextGen . stripParens ( match . getSourceExpression ( ) ) ) ) { bindingExpression . setTwoWayCounterpart ( match ) ; } else { destinationMap . put ( destinationPath , bindingExpression ) ; } } }
match up two - way binding expressions and settwowaycounterpart to indicate partner .
