final Method invokeMethod = getInvokeMethod( theClass );
final Map beanAttributes = (attributes != null) ? attributes : EMPTY_MAP;
TagFactory factory = new TagFactory() {
public Tag createTag() {
return new DynamicBeanTag(beanClass, beanAttributes, varAttribute, invokeMethod);
}
};
getTagLibrary().registerBeanTag(name, factory);
// now lets clear the attributes for next invocation and help the GC