Add java controller