private void adjustNameAndPosition(SessionNodeWrapper wrapper,List sessionNodeWrappers,int deltaX,int deltaY){
  String originalName=wrapper.getSessionName();
  String base=extractBase(originalName);
  String uniqueName=nextUniqueName(base,sessionNodeWrappers);
  if (!uniqueName.equals(originalName)) {
    wrapper.setSessionName(uniqueName);
    wrapper.setCenterX(wrapper.getCenterX() + deltaX);
    wrapper.setCenterY(wrapper.getCenterY() + deltaY);
  }
}

private void adjustNameAndPosition ( SessionNodeWrapper wrapper , List sessionNodeWrappers , int deltaX , int deltaY ) { String originalName = wrapper . getSessionName ( ) ; String base = extractBase ( originalName ) ; String uniqueName = nextUniqueName ( base , sessionNodeWrappers ) ; if ( ! uniqueName . equals ( originalName ) ) { wrapper . setSessionName ( uniqueName ) ; wrapper . setCenterX ( wrapper . getCenterX ( ) + deltaX ) ; wrapper . setCenterY ( wrapper . 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 .
