protected void upgradeNexusVersion() throws IOException { final String currentVersion = checkNotNull( applicationStatusSource.getSystemStatus().getVersion() ); final String previousVersion = getConfiguration().getNexusVersion(); if ( currentVersion.equals( previousVersion ) ) { setInstanceUpgraded( false ); } else { setInstanceUpgraded( true ); getConfiguration().setNexusVersion( currentVersion ); storeConfiguration(); } }
if ( configuration.getNexusVersion() != null ) serializer.startTag( NAMESPACE, "nexusVersion" ).text( configuration.getNexusVersion() ).endTag( NAMESPACE, "nexusVersion" );