private Plugin createPlugin() {
Plugin plugin = new Plugin(this.pluginDescriptor.getName(), null);
plugin.setDisplayName(this.pluginDescriptor.getDisplayName());
plugin.setDescription(this.pluginDescriptor.getDescription());
plugin.setVersion(this.pluginDescriptor.getVersion());
Help help = this.pluginDescriptor.getHelp();
if ((help != null) && !help.getContent().isEmpty()) {
plugin.setHelpContentType(help.getContentType());
plugin.setHelp(String.valueOf(help.getContent().get(0)));
}
return plugin;
}