private boolean isInstalled(List<SoftwareVersion> localAvailableVersions,SoftwareVersion targetVersion){
  for (  SoftwareVersion s : localAvailableVersions) {
    if (targetVersion.compareTo(s) == 0) {
      return true;
    }
  }
  return false;
}

private boolean isInstalled ( List < SoftwareVersion > localAvailableVersions , SoftwareVersion targetVersion ) { for ( SoftwareVersion s : localAvailableVersions ) { if ( targetVersion . compareTo ( s ) == 0 ) { return true ; } } return false ; }
check if a version is installed or not . true if the version is the same as one of the local available versions .
