final Collection<DiscoveredPlugin> discover = this.remoteDiscovery.discover(Plugin.class);
this.logger.fine("Found " + discover.size() + " plugins");
for (final DiscoveredPlugin discoveredPlugin : discover) {
final PublishMethod method = discoveredPlugin.getPublishMethod();
final URI publishURI = discoveredPlugin.getPublishURI();
this.logger.fine("-> Found " + publishURI);
final boolean a = method.toString().equals(protocol);
final boolean b = path.equals(publishURI.getPath());
if (a && b) {
this.logger.fine("Returning " + publishURI);
return publishURI.toString();