SizeableStatus sizeable = (SizeableStatus) this.getStatus(SizeableStatus.class, ProfileManager.SESSION_STATUS, cid.getCopletData().getName());
if ( sizeable != null ) {
SizingStatus sizingstatus = (SizingStatus)this.getStatus(SizingStatus.class, ProfileManager.SESSION_STATUS, cid.getCopletId());
int status = (sizingstatus == null ? SizingStatus.STATUS_MAXIMIZED : sizingstatus.getStatus());
SizingStatusEvent event;
if (sizeable.isMinimizable() && status != SizingStatus.STATUS_MINIMIZED) {
event = new SizingStatusEvent(cid, SizingStatus.STATUS_MINIMIZED, sizingstatus);
XMLUtils.createElement(handler, "minimize-uri", service.getLinkService().getLinkURI(event));
}
if (sizeable.isMaximizable() && status != SizingStatus.STATUS_MAXIMIZED) {
event = new SizingStatusEvent(cid, SizingStatus.STATUS_MAXIMIZED, sizingstatus);
XMLUtils.createElement(handler, "maximize-uri", service.getLinkService().getLinkURI(event));
}
if (status != SizingStatus.STATUS_MINIMIZED) {
context.invokeNext(layout, service, handler);
}