return c;//.map(getBeanMap(ctxt));
}
final boolean isfactorybean = type!=null && FactoryBean.class.isAssignableFrom(type);
if(isfactorybean){
if(ctxt.isSingletonAttributeSet()){
final SingletonMode mode = ctxt.getSingleton();
if(mode!=null)
c = mode.decorate(c);
}
else{
//factroy bean is by default singleton.
c = c.singleton(new ThreadLocalScope());
}