* @param contextName Service's Deployment Context name.
* @return The service endpoint, or null if the endpoint is not found.
*/
public static Endpoint getServiceEndpoint(String endpointName, String contextName) {
SPIProvider spiProv = SPIProviderResolver.getInstance().getProvider();
EndpointRegistryFactory factory = spiProv.getSPI(EndpointRegistryFactory.class);
EndpointRegistry registry = factory.getEndpointRegistry();
Set<ObjectName> objectNames = registry.getEndpoints();
for (ObjectName objectName : objectNames) {
String context = objectName.getKeyProperty(Endpoint.SEPID_PROPERTY_CONTEXT);
String endpoint = objectName.getKeyProperty(Endpoint.SEPID_PROPERTY_ENDPOINT);