more functionality and javadocs in PluginUtil