public static String getExportName(Plugin plugin) {
final Collection<Class<? extends Plugin>> primaryInterfaces = new PluginUtil(plugin).getPrimaryInterfaces();
final Logger logger = Logger.getLogger(PluginExport.class.getName());
if (primaryInterfaces.size() < 1) {
logger.severe("CRITICAL ERROR: UNABLE TO GET ANY INTERFACE NAME FOR " + plugin);
return "ERROR";
}
if (primaryInterfaces.size() > 1) {
logger.warning("Multiple plugin names found ... that is very bad and means your export names will be unstable!");