private MuleEndpoint buildEndpoint(String urlStr) throws EndpointException, MalformedEndpointException, UMOException { MuleEndpoint endpoint = new MuleEndpoint(); endpoint.setEndpointURI(new MuleEndpointURI(urlStr)); endpoint.setType(UMOEndpoint.ENDPOINT_TYPE_RECEIVER); endpoint.setFilter(new NotFilter(new WildcardFilter("*xyz*"))); // endpoint.setTransformer(new HttpRequestToString()); endpoint.setConnector(buildConnector(urlStr)); return endpoint; }