if (null == portletDef)
{
log.error("Could not find portlet definition in registry for " + registryKey);
continue;
}
PortletEntity entity = entityAccess.newPortletEntityInstance(portletDef);
try
{
entityAccess.storePortletEntity(entity);
param = new PsmlParameter();
param.setName(J2_ENTITY);