if(resType!=null&&!"".equals(resType)&&resType.equals("web"))
{
WebBookmarkResource wbr = WebBookmarkResource.getWebBookmarkResourceIfExists(resUri);
if(wbr != null)
wbr.increaseResourceHits();
if(wbr!=null&&wbr.getSeeAlso()!=null)
resp.sendRedirect(wbr.getSeeAlso().toString());
else if(resUri.contains("__"))
resp.sendRedirect(resUri.substring(0,resUri.lastIndexOf("__")));