Add java approach