public void upgradeTo(String version) throws Exception
    {
    	String installedVersion = systemInfo.getGpVersion();
    	if(!installedVersion.equals(version))
    	{
    		ServerVersionUpgrader upgrader = versionUpgrader(installedVersion, version);
    		upgrader.upgrade(sessionService);
    		
    		String newInstalledVersion = upgrader.upgradedTo() != null ? upgrader.upgradedTo() : version;
    		systemInfo.setGpVersion(newInstalledVersion);
			upgradeTo(version);
    	}
    	
		systDao.store(systemInfo);
    }
public void upgradeTo ( String version ) throws Exception { String installedVersion = systemInfo . getGpVersion ( ) ; if ( ! installedVersion . equals ( version ) ) { ServerVersionUpgrader upgrader = versionUpgrader ( installedVersion , version ) ; upgrader . upgrade ( sessionService ) ; String newInstalledVersion = upgrader . upgradedTo ( ) != null ? upgrader . upgradedTo ( ) : version ; systemInfo . setGpVersion ( newInstalledVersion ) ; upgradeTo ( version ) ; } systDao . store ( systemInfo ) ; }
<p>upgradeTo.</p>

@param version a {@link java.lang.String} object.
@throws java.lang.Exception if any.