while (ctx.isAt(m_uri, "preference"))
{
Preference value = (Preference)ctx.unmarshalElement();
builder.add(value.getName(), value.getValues(), value.isReadOnly());
}
ctx.parsePastEndTag(m_uri, "preferences");
state = new TransientApplicationState<Portlet>(applicationName + "/" + portletName, builder.build());
}
else
{
state = new TransientApplicationState<Portlet>(applicationName + "/" + portletName, null);