}
class SharedStateMessageReceiver implements ComponentMessageReceiver {
public void messageReceived(CellMessage message) {
if (message instanceof ChangeValueMessage) {
ChangeValueMessage cvm = (ChangeValueMessage) message;
// get the map
SharedMapImpl map = get(cvm.getMapName(), false);
map.handleMessage(cvm);
} else {
logger.log(Level.WARNING, "Unrecognized message " +
message.getClass().getName() + ": " + message);
}