{
entityAccess.storePortletEntity(entity);
param = new PsmlParameter();
param.setName(J2_ENTITY);
param.setValue(entity.getId().toString());
entry.addParameter(param);
count++;
}
catch (Exception e)
{
log.error("Failed to store portlet entity: " + registryKey, e);