Extract getHandle use