throw new InvalidPluginException("Plugin type can not be null in "
+ this.getClass().getName());
}
StoragePluginMetadata metadata = new StoragePluginMetadata();
metadata.setDefaultServicePort(pluginInfo.defaultServicePort());
metadata.setDefaultManagementPort(pluginInfo.defaultManagementPort());
metadata.setRequiresAuthentication(pluginInfo.requiresAuthentication());
metadata.setType(pluginInfo.type());
try