if ((metadataTarget != null) && (metadataTarget.isTargetInstanceOf(Accordion.class))) {
if (AccordionRenderer.TAB_COLLAPSE_LISTENER.equals(name)) {
Method writeMethod = metadataTarget.getWriteMethod(name);
Class<?>[] args = new Class[] { TabCollapseEvent.class };
metadata = new MethodMetadata(tagAttribute, writeMethod, args);
}
else if (AccordionRenderer.TAB_EXPAND_LISTENER.equals(name)) {
Method writeMethod = metadataTarget.getWriteMethod(name);
Class<?>[] args = new Class[] { TabExpandEvent.class };
metadata = new MethodMetadata(tagAttribute, writeMethod, args);
}
}
return metadata;
}