Configuration pluginConfig, ResourceDiscoveryContext context, ResourceContainer parentResourceContainer)
throws Exception {
long timeout = getDiscoveryComponentTimeout();
try {
ManualAddFacet proxy = this.discoveryComponentProxyFactory.getDiscoveryComponentProxy(
context.getResourceType(), component, timeout, ManualAddFacet.class, parentResourceContainer);
DiscoveredResourceDetails result = proxy.discoverResource(pluginConfig, context);
return result;
} catch (TimeoutException te) {
log.warn("Manual add of Resource of type [" + context.getResourceType() + "] with plugin configuration ["
+ pluginConfig.toString(true) + "] has been running for more than " + timeout
+ " milliseconds. This may be a plugin bug.", te);