protected List getConsumes(Endpoint endpoint) {
List consumesList = new ArrayList();
Consumes consumes;
if (endpoint.getRole().equals(MessageExchange.Role.CONSUMER)) {
consumes = new Consumes();
JmsEndpoint httpEndpoint = (JmsEndpoint) endpoint;
consumes.setEndpointName(httpEndpoint.getTargetEndpoint());
consumes.setInterfaceName(httpEndpoint.getTargetInterfaceName());
consumes.setServiceName(httpEndpoint.getTargetService());
if (consumes.isValid()) {
consumesList.add(consumes);
} else {
consumes = new Consumes();
consumes.setEndpointName(endpoint.getEndpoint());