FrameSourceEvent statusEvent = (FrameSourceEvent) event;
final String layoutID = statusEvent.getLayoutId();
ProfileManager profileManager = null;
try {
profileManager = (ProfileManager) this.manager.lookup(ProfileManager.ROLE);
FrameStatus status =
(FrameStatus) profileManager.getAspectStatus(
FrameStatus.class,
ProfileManager.REQUEST_STATUS,
layoutID);
String link = statusEvent.getLink();
if (status == null) {
if (link != null) {
status = new FrameStatus();
status.setLink(link);
profileManager.setAspectStatus(ProfileManager.REQUEST_STATUS, layoutID, status);
}
} else if (link != null) {
status.setLink(link);
} else {
// remove status if link == null
profileManager.setAspectStatus(ProfileManager.REQUEST_STATUS, layoutID, null);
}
} catch (ComponentException ce) {