public Portlet createPortlet(String name, String jspfile, String description, int widenarrow)
throws CreateException, RemoteException, NamingException {
if(portletRange == null) {
Context ctx = new InitialContext();
SequenceServiceHome home = (SequenceServiceHome)ctx.lookup("nordija.portal.sequence");
SequenceService seq = home.create();
portletRange = seq.getSequenceRange("Portlet",true,10);
}
PortletPK pk = new PortletPK(portletRange.getNextUniqueNumber());
Portlet mod = fetchPortletHome().create(pk, name, widenarrow);