ConcreteElement result = new ConcreteElement();
if (data != null && data.getUser() != null)
{
JetspeedTool jt = new JetspeedTool(data);
String jspeid = (String) data.getUser().getTemp("js_peid");
if (jspeid != null)
{
data.setMode(JetspeedRunData.MAXIMIZE);
result = jt.getPortletById(jspeid, true);
if(result == null)
{
// Remove the flag for this user
data.getUser().removeTemp("js_peid");
data.setMode(JetspeedRunData.NORMAL);
result = jt.getPane(this.name);
}
}
else
{
result = jt.getPane(this.name);
}
}
// Check whether this is an "old" screen (that returns a ConcreteElement)
// or a "new" one that returns null.