upload stack example java