MutablePortletApplication oldPA,
boolean local,
ClassLoader loader)
throws RegistryException
{
MutablePortletApplication app = super.registerPortletApplication(paWar, oldPA, local, loader);
//create xreg
try
{
// remove entries from the registry
// registry.processPortletApplicationTree(app, "remove");
log.info("Saving the portlet.xml in the J1 registry...");
Collection pds = app.getPortletDefinitions();
Iterator pdsIter = pds.iterator();
while (pdsIter.hasNext())
{
PortletDefinition pdef = (PortletDefinition) pdsIter.next();
PortletEntry entry = createPortletEntry(app.getName(), pdef);
Registry.saveEntry(Registry.PORTLET, entry);
System.out.println("Writing registry: " + entry.getName());
}