public GWTJahiaPortletDefinition createGWTJahiaPortletDefinition(ApplicationBean appBean, EntryPointDefinition entryPointDefinition, Locale locale) throws JahiaException {
String portletType = null;
int expTime = 0;
String cacheScope = null;
if (entryPointDefinition instanceof PortletEntryPointDefinition) {
PortletEntryPointDefinition portletEntryPointDefinition = ((PortletEntryPointDefinition) entryPointDefinition);
portletType = portletEntryPointDefinition.getInitParameter("portletType");
expTime = portletEntryPointDefinition.getExpirationCache();
cacheScope = portletEntryPointDefinition.getCacheScope();
}
if (portletType == null) {
portletType = "jnt:portlet";
}
GWTJahiaNodeACL gwtJahiaNodeACL = new GWTJahiaNodeACL(new ArrayList<GWTJahiaNodeACE>());