Add api package and change PluginUtils.java