code: private static List<String> loadEndPoints(Map<String, String[]> endpoints) {
          final boolean bTrace = TraceComponent.isAnyTracingEnabled();
          final EndPointMgr epm = EndPointMgrImpl.getRef();
          List<String> createdEndpoints = new ArrayList<String>(endpoints.size());
  
          for (Entry<String, String[]> entry : endpoints.entrySet()) {
              try {
                  EndPointInfo ep = defineEndPoint(epm, entry.getKey(), entry.getValue());
                  createdEndpoints.add(ep.getName());
              } catch (IllegalArgumentException e) {
                  FFDCFilter.processException(e, "ChannelUtils.loadEndPoints",
                                              "create", new Object[] { epm, entry });
                  if (bTrace && tc.isEventEnabled()) {
                      Tr.event(tc, "Unable to load endpoint: " + e);
                  }
              }
          }
  
          return createdEndpoints;
      }
docs: Load chain endpoints based on the provided configuration.
  
  @param endpoints
  @return List<String> - endpoints created successfully