// separate string into components
String key = (String) regElements.get(0);
String parentPortletId = (String) regElements.get(1);
WGPortletDefaultBean portlet = createPortletDefaultBean(key, appDb, parentPortletId);
String db = null;
String design = (String) regElements.get(2);
int slashPos = design.indexOf("/");
// Extract database if available
if (slashPos != -1) {
db = design.substring(0, slashPos);
design = design.substring(slashPos + 1);
}
String title = (String) regElements.get(3);
portlet.setDesignDb(db);
portlet.setDesign(design);
portlet.setName(title);
return portlet;
}