public static void upgradeServerInstance(SSOToken ssoToken,String instanceName,String instanceId,Map<String,String> upgradedValues) throws SMSException, SSOException, ConfigurationException, IOException {
  ServiceConfig sc=getServerConfig(ssoToken,instanceName);
  if (sc != null) {
    Map map=sc.getAttributes();
    map.remove(ATTR_PARENT_SITE_ID);
    Set newSet=getPropertiesSet(upgradedValues);
    map.put(ATTR_SERVER_CONFIG,newSet);
    sc.setAttributes(map);
  }
 else {
    throw new ConfigurationException("Unable to upgrade server " + "default properties: no properties found!");
  }
}

public static void upgradeServerInstance ( SSOToken ssoToken , String instanceName , String instanceId , Map < String , String > upgradedValues ) throws SMSException , SSOException , ConfigurationException , IOException { ServiceConfig sc = getServerConfig ( ssoToken , instanceName ) ; if ( sc != null ) { Map map = sc . getAttributes ( ) ; map . remove ( ATTR_PARENT_SITE_ID ) ; Set newSet = getPropertiesSet ( upgradedValues ) ; map . put ( ATTR_SERVER_CONFIG , newSet ) ; sc . setAttributes ( map ) ; } else { throw new ConfigurationException ( "Unable to upgrade server " + "default properties: no properties found!" ) ; } }
upgrades a server instance .
