protected ServiceEndpoint[] getPossibleEndpoints(MessageExchange me, ServiceEndpoint[] endpoints) {
List result = new ArrayList();
for (int i = 0; i < endpoints.length; i++) {
AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoints[i];
String compName = se.getComponent();
RegistryComponent compInfo = container.getRegistry().getComponent(compName);
if (me.getRole() == MessageExchange.Role.CONSUMER) {
if (((Component)compInfo.getComponent()).isExchangeWithConsumerOkay(se, me)) {
result.add(se);
}