Initial java implementation of the plugin