Using 2P-Kt programmatically in Java