if ((driver = (PortletDriver)portletDrivers.get(portlet.getPortletKey().toString())) == null) {
String driverClass = this.adapter.getAdapterConfiguration().getParameter("portlet-driver-class", PortletDriverImpl.class.getName());
try {
driver = (PortletDriverImpl)this.adapter.createObject(driverClass);
} catch (Exception e) {
throw new WSRPException(0, e);
}
((PortletDriverImpl)driver).init(portlet);
this.portletDrivers.put(portlet.getPortletKey().toString(), driver);
}
return driver;