Added snippet support to core
Added snippet support to java and junit