Adding java source code for snapp.jar