private void addIIOPEndPoints(final String instanceName,
final ConfigContext configContext)
throws ConfigException, GMSException
{
IiopInfo iiopInfo;
final Map<String, IiopListener[]> lsnrMap ;
lsnrMap = getResolvedIiopListenersInCluster( true, configContext, instanceName );
if(!lsnrMap.isEmpty()){
for(String instance : lsnrMap.keySet()){
final List<IiopInfo> infoList = new ArrayList<IiopInfo>();
final IiopListener[] listeners = lsnrMap.get(instance);
final Server server= ServerHelper.getServerByName(configContext, instance);
for(IiopListener listener : listeners){
iiopInfo = getIiopInfo( listener);
iiopInfo.setWeight( Integer.parseInt( server.getLbWeight()));
try {
String nodeAgentHostName = getNodeAgentHostName(configContext, server);
iiopInfo.setHostName(nodeAgentHostName);
} catch (ConfigException configEx) {
logger.log(Level.WARNING, configEx.getMessage());
}
infoList.add(iiopInfo);