private void loadLatestExtensionVersions(){
  try {
    List<Extension> all=registryManager.getExtensions();
    if (!all.isEmpty()) {
      setLatestExtensionVersions(getLatestVersions(all));
    }
  }
 catch (  RegistryException e) {
    String msg=RegistryException.logRegistryException(e.getType(),this);
    warnings.addStartupError(msg);
    LOG.error(msg);
    msg=getText("admin.extensions.couldnt.load",new String[]{cfg.getRegistryUrl()});
    warnings.addStartupError(msg);
    LOG.error(msg);
  }
 finally {
    if (getLatestExtensionVersions() == null) {
      setLatestExtensionVersions(new ArrayList<Extension>());
    }
  }
}

private void loadLatestExtensionVersions ( ) { try { List < Extension > all = registryManager . getExtensions ( ) ; if ( ! all . isEmpty ( ) ) { setLatestExtensionVersions ( getLatestVersions ( all ) ) ; } } catch ( RegistryException e ) { String msg = RegistryException . logRegistryException ( e . getType ( ) , this ) ; warnings . addStartupError ( msg ) ; LOG . error ( msg ) ; msg = getText ( "admin.extensions.couldnt.load" , new String [ ] { cfg . getRegistryUrl ( ) } ) ; warnings . addStartupError ( msg ) ; LOG . error ( msg ) ; } finally { if ( getLatestExtensionVersions ( ) == null ) { setLatestExtensionVersions ( new ArrayList < Extension > ( ) ) ; } } }
reload the list of registered extensions , loading only the latest extension versions .
