*/
@SuppressWarnings("unchecked")
public void addForward(Method md, Annotation a, Component comp) {
String mdname = md.getName();
Component xcomp = comp;
String annotationValue = ((Events) a).value();
List<String> annotationValueTokens = (List<String>) CollectionsX.parse(
new ArrayList<String>(), annotationValue, ',');
for (String annotationValueToken : annotationValueTokens) {
String srccompid = annotationValueToken.substring(0,
annotationValueToken.indexOf('.'));
String srcevt = annotationValueToken.substring(annotationValueToken
.indexOf('.') + 1, annotationValueToken.length());
// TODO: get component instance from bean manager
// try EL resolver or check any api/spi interface
Object srccomp = xcomp.getAttributeOrFellow(srccompid, true);
if (srccomp == null) {
Page page = xcomp.getPage();
if (page != null)
srccomp = page.getXelVariable(null, null, srccompid, true);
}
if (srccomp == null || !(srccomp instanceof Component)) {
log.debug("Cannot find the associated component to forward event: "