Initial commit. Migration of existing codes to Java.
Implementation of Lock test. Now to get it to work properly :-)