} else if (service instanceof NavigationService) {
portObject = ((NavigationService) service).getNavigationServicePort(new MTOMFeature());
} else if (service instanceof ObjectService) {
int threshold = getSession().get(SessionParameter.WEBSERVICES_MEMORY_THRESHOLD, 4 * 1024 * 1024);
portObject = ((ObjectService) service).getObjectServicePort(new MTOMFeature(),
new StreamingAttachmentFeature(null, true, threshold));
((BindingProvider) portObject).getRequestContext().put(
JAXWSProperties.HTTP_CLIENT_STREAMING_CHUNK_SIZE, CHUNK_SIZE);
} else if (service instanceof VersioningService) {
int threshold = getSession().get(SessionParameter.WEBSERVICES_MEMORY_THRESHOLD, 4 * 1024 * 1024);
portObject = ((VersioningService) service).getVersioningServicePort(new MTOMFeature(),
new StreamingAttachmentFeature(null, true, threshold));
((BindingProvider) portObject).getRequestContext().put(
JAXWSProperties.HTTP_CLIENT_STREAMING_CHUNK_SIZE, CHUNK_SIZE);
} else if (service instanceof DiscoveryService) {
portObject = ((DiscoveryService) service).getDiscoveryServicePort(new MTOMFeature());
} else if (service instanceof MultiFilingService) {