public void replaceCreationTemplate(Guid guid,String templateName,AttrSet attrSet) throws ConfigManagerException {
  if (guid == null) {
    guid=new Guid(_rootDN);
  }
  DN dn=DN.valueOf(guid.getDn());
  String org="";
  List<RDN> rdns=new ArrayList<>();
  for (  RDN rdn : dn) {
    rdns.add(0,rdn);
  }
  for (  RDN rdn : rdns) {
    org=org + "/" + LDAPUtils.rdnValue(rdn);
  }
  String service=CREATIONPATH + "/" + templateName;
  Map map=convertToMap(attrSet);
  try {
    replaceServiceAttributes(org,service,map);
  }
 catch (  SMSException e) {
    String args[]=new String[1];
    args[0]=e.toString();
    throw new ConfigManagerException(i18n.getString(IUMSConstants.ERROR_CM,args));
  }
catch (  SSOException se) {
    String args[]=new String[1];
    args[0]=se.toString();
    throw new ConfigManagerException(i18n.getString(IUMSConstants.ERROR_CM,args));
  }
}

public void replaceCreationTemplate ( Guid guid , String templateName , AttrSet attrSet ) throws ConfigManagerException { if ( guid == null ) { guid = new Guid ( _rootDN ) ; } DN dn = DN . valueOf ( guid . getDn ( ) ) ; String org = "" ; List < RDN > rdns = new ArrayList < > ( ) ; for ( RDN rdn : dn ) { rdns . add ( 0 , rdn ) ; } for ( RDN rdn : rdns ) { org = org + "/" + LDAPUtils . rdnValue ( rdn ) ; } String service = CREATIONPATH + "/" + templateName ; Map map = convertToMap ( attrSet ) ; try { replaceServiceAttributes ( org , service , map ) ; } catch ( SMSException e ) { String args [ ] = new String [ 1 ] ; args [ 0 ] = e . toString ( ) ; throw new ConfigManagerException ( i18n . getString ( IUMSConstants . ERROR_CM , args ) ) ; } catch ( SSOException se ) { String args [ ] = new String [ 1 ] ; args [ 0 ] = se . toString ( ) ; throw new ConfigManagerException ( i18n . getString ( IUMSConstants . ERROR_CM , args ) ) ; } }
replaces an existing template .
