public void createSubConfig(String name,String schemaName,Map values) throws AMConsoleException {
  String[] params={serviceName,parentConfig.getComponentName(),name,schemaName};
  try {
    amModel.logEvent("ATTEMPT_CREATE_GLOBAL_SUB_CONFIGURATION",params);
    parentConfig.addSubConfig(name,schemaName,0,values);
    amModel.logEvent("SUCCEED_CREATE_GLOBAL_SUB_CONFIGURATION",params);
  }
 catch (  SSOException e) {
    String[] paramsEx={serviceName,parentConfig.getComponentName(),name,schemaName,amModel.getErrorString(e)};
    amModel.logEvent("SSO_EXCEPTION_CREATE_GLOBAL_SUB_CONFIGURATION",paramsEx);
    throw new AMConsoleException(amModel.getErrorString(e));
  }
catch (  SMSException e) {
    String[] paramsEx={serviceName,parentConfig.getComponentName(),name,schemaName,amModel.getErrorString(e)};
    amModel.logEvent("SMS_EXCEPTION_CREATE_GLOBAL_SUB_CONFIGURATION",paramsEx);
    throw new AMConsoleException(amModel.getErrorString(e));
  }
}

public void createSubConfig ( String name , String schemaName , Map values ) throws AMConsoleException { String [ ] params = { serviceName , parentConfig . getComponentName ( ) , name , schemaName } ; try { amModel . logEvent ( "ATTEMPT_CREATE_GLOBAL_SUB_CONFIGURATION" , params ) ; parentConfig . addSubConfig ( name , schemaName , 0 , values ) ; amModel . logEvent ( "SUCCEED_CREATE_GLOBAL_SUB_CONFIGURATION" , params ) ; } catch ( SSOException e ) { String [ ] paramsEx = { serviceName , parentConfig . getComponentName ( ) , name , schemaName , amModel . getErrorString ( e ) } ; amModel . logEvent ( "SSO_EXCEPTION_CREATE_GLOBAL_SUB_CONFIGURATION" , paramsEx ) ; throw new AMConsoleException ( amModel . getErrorString ( e ) ) ; } catch ( SMSException e ) { String [ ] paramsEx = { serviceName , parentConfig . getComponentName ( ) , name , schemaName , amModel . getErrorString ( e ) } ; amModel . logEvent ( "SMS_EXCEPTION_CREATE_GLOBAL_SUB_CONFIGURATION" , paramsEx ) ; throw new AMConsoleException ( amModel . getErrorString ( e ) ) ; } }
creates a new sub configuration .
