def demo3():
    print "uh"
    config=Config()
    config.set_username("dev")
    config.set_password("dev-pass")
    client=HazelcastClient(config)
    print "uh"
    map=client.getMap("my-map")
    registrationId=map.AddEntryListener(True,MyEntryHandler()).response

    while map.Size().response < 50:
        print "Map size is less than 50"
        time.sleep(0.1)

    print "Map size is greater than 50"
    sys.exit()