// Compare reference with method-override beans
if (!bd.getMethodOverrides().isEmpty()) {
Iterator methodsOverrides = bd.getMethodOverrides()
.getOverrides().iterator();
while (methodsOverrides.hasNext()) {
MethodOverride methodOverride = (MethodOverride)
methodsOverrides.next();
if (methodOverride instanceof LookupOverride) {
String name = ((LookupOverride) methodOverride)
.getBeanName();
if (pattern.matcher(name).matches()) {