*/
public void handleCopletInstanceEvent(CopletInstanceEvent e) {
super.handleCopletInstanceEvent(e);
if ( e instanceof CopletLinkEvent ) {
CopletLinkEvent event = (CopletLinkEvent) e;
CopletInstanceData coplet = (CopletInstanceData) event.getTarget();
String link = event.getLink();
if ("createNewCopletInstance".equals(link)) {
try {
createNewInstance(coplet);
} catch (ProcessingException ex) {
getLogger().error("Could not create new coplet instance", ex);
}
} else {
// this is a normal link event, so save the url in the instance data
// for ProxyTransformer
String linkValue = event.getLink();
Boolean addParams = (Boolean)this.getConfiguration(coplet, "appendParameters", Boolean.FALSE);
if ( addParams.booleanValue() ) {
final StringBuffer uri = new StringBuffer(event.getLink());
boolean hasParams = (uri.toString().indexOf("?") != -1);
// append parameters - if any
final Map objectModel = ContextHelper.getObjectModel(this.context);
final Request r = ObjectModelHelper.getRequest(objectModel);