* direct page access, checkbox etc. The source label is then setup upon the given cycle in the
* for of: PageClassName.componentId.
*/
private void resolveSourceLabel(IRequestTarget requestTarget, JamonMonitoredWebRequestCycle cycle) {
if (requestTarget instanceof IBookmarkablePageRequestTarget) {
IBookmarkablePageRequestTarget target = (IBookmarkablePageRequestTarget) requestTarget;
cycle.comesFromPage(target.getPageClass());
cycle.setSource(target.getPageClass().getSimpleName());
} else if (requestTarget instanceof IListenerInterfaceRequestTarget) {
IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget;
Class<? extends Page> pageClass = target.getPage().getClass();
cycle.comesFromPage(pageClass);
String source = addComponentNameToLabelIfNotRedirectPageRequestTarget(target, pageClass.getSimpleName());
cycle.setSource(source);
} else {
doResolveSourceLabel(requestTarget, cycle);