}
// Retrieve this bean's method overrides
if (definition instanceof AbstractBeanDefinition) {
methodOverrides = new LinkedHashSet<IBeanMethodOverride>();
MethodOverrides mos = ((AbstractBeanDefinition) definition).getMethodOverrides();
if (mos != null) {
for (Object mo : mos.getOverrides()) {
if (mo instanceof LookupOverride) {
methodOverrides.add(new BeanLookupMethodOverride(this, (LookupOverride) mo));
}
else if (mo instanceof ReplaceOverride) {
methodOverrides.add(new BeanReplaceMethodOverride(this, (ReplaceOverride) mo));