ThKr: added java source and junit test files