public void expandAndSelectIfExists(RepositoryLocation location){
  if (location.parent() != null) {
    expandIfExists(location.parent(),location.getName());
  }
 else {
    expandIfExists(location,null);
  }
  scrollPathToVisible(getSelectionPath());
}

public void expandAndSelectIfExists ( RepositoryLocation location ) { if ( location . parent ( ) != null ) { expandIfExists ( location . parent ( ) , location . getName ( ) ) ; } else { expandIfExists ( location , null ) ; } scrollPathToVisible ( getSelectionPath ( ) ) ; }
expands the tree to select the given entry if it exists .
