P2SP in Java