public static void addSubSchema(String serviceName,String subSchema,String schemaType,String fileName) throws UpgradeException {
  String classMethod="UpgradeUtils:addSubSchema : ";
  if (debug.messageEnabled()) {
    debug.message(classMethod + "Adding subschema: " + fileName+ " for service: "+ serviceName);
  }
  try {
    ServiceSchema ss=getServiceSchema(serviceName,subSchema,schemaType);
    ss.addSubSchema(new FileInputStream(fileName));
  }
 catch (  IOException ioe) {
    throw new UpgradeException("Error reading schema file ");
  }
catch (  SSOException ssoe) {
    throw new UpgradeException("invalid sso token");
  }
catch (  SMSException ssoe) {
    throw new UpgradeException("error creating subschema");
  }
}

public static void addSubSchema ( String serviceName , String subSchema , String schemaType , String fileName ) throws UpgradeException { String classMethod = "UpgradeUtils:addSubSchema : " ; if ( debug . messageEnabled ( ) ) { debug . message ( classMethod + "Adding subschema: " + fileName + " for service: " + serviceName ) ; } try { ServiceSchema ss = getServiceSchema ( serviceName , subSchema , schemaType ) ; ss . addSubSchema ( new FileInputStream ( fileName ) ) ; } catch ( IOException ioe ) { throw new UpgradeException ( "Error reading schema file " ) ; } catch ( SSOException ssoe ) { throw new UpgradeException ( "invalid sso token" ) ; } catch ( SMSException ssoe ) { throw new UpgradeException ( "error creating subschema" ) ; } }
adds sub schema to a service .
