//if there is an attribute URL the servlet was
//called with a beautiful URL so give back a beautiful URL
//check if valid local link
String applicationrule = (String) config.get("applicationrule");
ds = config.getDatasource();
Expression expression = null;
try {
expression = PortalConnectorFactory.createExpression("object.contentid == '" + contentid
+ "' && " + applicationrule);
} catch (ParserException exception) {
log.error("Error while building expression object for " + contentid, exception);