public void addConfiguration(InputStream in) throws SMSException, SSOException {
  ServiceManager sm=new ServiceManager(token);
  Document doc=SMSSchema.getXMLDocument(in);
  NodeList nodes=doc.getElementsByTagName(SMSUtils.SERVICE);
  for (int i=0; (nodes != null) && (i < nodes.getLength()); i++) {
    Node serviceNode=nodes.item(i);
    String sName=XMLUtils.getNodeAttributeValue(serviceNode,SMSUtils.NAME);
    String sVersion=XMLUtils.getNodeAttributeValue(serviceNode,SMSUtils.VERSION);
    Node configNode;
    if (sName.equals(serviceName) && (sVersion.equals(version)) && ((configNode=XMLUtils.getChildNode(serviceNode,SMSUtils.CONFIGURATION)) != null)) {
      CreateServiceConfig.createService(sm,sName,sVersion,configNode,null);
    }
  }
}

public void addConfiguration ( InputStream in ) throws SMSException , SSOException { ServiceManager sm = new ServiceManager ( token ) ; Document doc = SMSSchema . getXMLDocument ( in ) ; NodeList nodes = doc . getElementsByTagName ( SMSUtils . SERVICE ) ; for ( int i = 0 ; ( nodes != null ) && ( i < nodes . getLength ( ) ) ; i ++ ) { Node serviceNode = nodes . item ( i ) ; String sName = XMLUtils . getNodeAttributeValue ( serviceNode , SMSUtils . NAME ) ; String sVersion = XMLUtils . getNodeAttributeValue ( serviceNode , SMSUtils . VERSION ) ; Node configNode ; if ( sName . equals ( serviceName ) && ( sVersion . equals ( version ) ) && ( ( configNode = XMLUtils . getChildNode ( serviceNode , SMSUtils . CONFIGURATION ) ) != null ) ) { CreateServiceConfig . createService ( sm , sName , sVersion , configNode , null ) ; } } }
adds instances , global and organization configurations
