private void adjustNameAndPosition(Node node,int deltaX,int deltaY){
  String originalName=node.getName();
  String uniqueName=nextUniqueName(originalName);
  if (!uniqueName.equals(originalName)) {
    node.setName(uniqueName);
    node.setCenterX(node.getCenterX() + deltaX);
    node.setCenterY(node.getCenterY() + deltaY);
  }
}

private void adjustNameAndPosition ( Node node , int deltaX , int deltaY ) { String originalName = node . getName ( ) ; String uniqueName = nextUniqueName ( originalName ) ; if ( ! uniqueName . equals ( originalName ) ) { node . setName ( uniqueName ) ; node . setCenterX ( node . getCenterX ( ) + deltaX ) ; node . setCenterY ( node . getCenterY ( ) + deltaY ) ; } }
adjusts the name to avoid name conflicts in the new session and , if the name is adjusted , adjusts the position so the user can see the two nodes .
