/// <summary>Process an incoming packet and raise the appropriate events</summary>
/// <param name="sender">The sender</param>
/// <param name="e">The EventArgs object containing the packet data</param>
protected void RegionHandshakeHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
{
RegionHandshakePacket handshake = (RegionHandshakePacket)e.getPacket();
Simulator simulator = e.getSimulator();
e.getSimulator().ID = handshake.RegionInfo.CacheID;
simulator.IsEstateManager = handshake.RegionInfo.IsEstateManager;
simulator.Name = Utils.bytesWithTrailingNullByteToString(handshake.RegionInfo.SimName);