}
StoragePluginMetadata metadata = new StoragePluginMetadata();
metadata.setDefaultServicePort(pluginInfo.defaultServicePort());
metadata.setDefaultManagementPort(pluginInfo.defaultManagementPort());
metadata.setRequiresAuthentication(pluginInfo.requiresAuthentication());
metadata.setType(pluginInfo.type());
try
{
Method[] methods = StoragePlugin.class.getMethods();