// TODO mlowery this is not portable between JAX-WS implementations
// (uses com.sun)
( (BindingProvider) port ).getRequestContext().put( JAXWSProperties.HTTP_CLIENT_STREAMING_CHUNK_SIZE, 8192 );
SOAPBinding binding = (SOAPBinding) ( (BindingProvider) port ).getBinding();
binding.setMTOMEnabled( true );
final UnifiedRepositoryToWebServiceAdapter unifiedRepositoryToWebServiceAdapter =
new UnifiedRepositoryToWebServiceAdapter( port );
repository = unifiedRepositoryToWebServiceAdapter;
return unifiedRepositoryToWebServiceAdapter;
}