def translate(self, address):
if address is None:<EOL><INDENT>return None<EOL><DEDENT>public_address = self._private_to_public.get(address)<EOL>if public_address:<EOL><INDENT>return public_address<EOL><DEDENT>self.refresh()<EOL>return self._private_to_public.get(address)<EOL>
Translates the given address to another address specific to network or service.

:param address: (:class:`~hazelcast.core.Address`), private address to be translated
:return: (:class:`~hazelcast.core.Address`), new address if given address is known, otherwise returns null