ClassLoader configClassLoader = config.getClassLoader();
HazelcastInstance hazelcastInstance = client;
PartitioningStrategy partitioningStrategy = getPartitioningStrategy(configClassLoader);
SerializationServiceBuilder builder = new DefaultSerializationServiceBuilder();
SerializationConfig serializationConfig = config.getSerializationConfig() != null ? config
.getSerializationConfig() : new SerializationConfig();
ss = builder.setClassLoader(configClassLoader)
.setConfig(serializationConfig)
.setManagedContext(new HazelcastClientManagedContext(client, config.getManagedContext()))
.setPartitioningStrategy(partitioningStrategy)
.setHazelcastInstance(hazelcastInstance)
.build();