// Basics
ProviderConfig provider = HermesBrowser.getConfigDAO().getFactory().createProviderConfig();
provider.setClassName("com.tibco.tibjms.TibjmsConnectionFactory");
PropertySetConfig p = HermesBrowser.getConfigDAO().getFactory().createPropertySetConfig();
addProperty(p.getProperty(), "serverUrl", basicInfo.getServerURL());
addProperty(p.getProperty(), "userName", basicInfo.getUsername());
addProperty(p.getProperty(), "password", basicInfo.getPassword());
addProperty(p.getProperty(), "clientID", basicInfo.getClientID());
provider.setProperties(p);
// Extension.
config.setClasspathId(basicInfo.getClasspathId());
ProviderExtConfig extConfig = HermesBrowser.getConfigDAO().getFactory().createProviderExtConfig();
PropertySetConfig p2 = HermesBrowser.getConfigDAO().getFactory().createPropertySetConfig();
extConfig.setClassName("hermes.ext.ems.TibcoEMSAdminFactory");
addProperty(p2.getProperty(), "serverUrl", basicInfo.getServerURL());
addProperty(p2.getProperty(), "userName", basicInfo.getUsername());
addProperty(p2.getProperty(), "password", basicInfo.getPassword());
extConfig.setProperties(p2);
}