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);
final List<String> filenamesToOpen = wh.getFilenamesToOpen(resource, openKind);
for (final String filename : filenamesToOpen) {
final IFile file = WicketHyperlink.getFile(filename);
try {
final InputStream contents = file.getContents();