Map<String, Object> map = new HashMap<String, Object>();
endpoint1 = new Endpoint1();
Endpoint2 endpoint2 = new Endpoint2();
map.put("http://example.com/fabrikam/mail/Delete", endpoint1);
map.put("http://example.com/fabrikam/mail/Add", endpoint2);
mapping.setPreInterceptors(new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
mapping.setPostInterceptors(new EndpointInterceptor[]{new PayloadValidatingInterceptor()});
mapping.setAddress(new URI("mailto:fabrikam@example.com"));
mapping.setActionMap(map);
mapping.afterPropertiesSet();
}