}
public AbstractName resolveTargetName(Kernel kernel) throws GBeanNotFoundException {
Configuration configuration = getConfiguration(kernel);
try {
return configuration.findGBean(abstractNameQueries);
} catch (GBeanNotFoundException e) {
Set results = kernel.listGBeans(abstractNameQueries);
if (results.size() == 1) {
return (AbstractName) results.iterator().next();
}