final IRegion wcr = DocumentHelper.findWicketComponentRegion(document, context.getInvocationOffset());
if (wcr != null) {
final IRegion javaRegion = DocumentHelper.findWord(document, wcr.getOffset());
try {
final IJavaElement[] jes = cu.codeSelect(javaRegion.getOffset(), javaRegion.getLength());
if (jes.length == 1 && TypeHelper.isWicketJavaElement(jes[0])) {
final IResource resource = cu.getResource();
final String openKind = jes[0].getElementName().equals(DocumentHelper.GET_STRING) ? WicketHyperlink.PROPERTIES : WicketHyperlink.HTML;
final WicketHyperlink wh = new WicketHyperlink(new Region(0, 0), "", openKind);