Method findCGSetter(Class clazz)
public static Method findCGSetter(Class clazz)
    Method findCGSetter(Class clazz)	throws Exception    {	Method[] methods = clazz.getMethods();	for (int i=0; i < methods.length; i++) {	    if ("setCG".equals(methods[i].getName()) &&		!methods[i].getParameterTypes()[0].equals(ComponentCG.class))		return methods[i];	}	return null;    }