protected LrpConfig createWidget(WidgetFactory f, Properties args, List<Result> results) { final String METHOD_NAME = "createWidget"; boolean isTraceEnabled = LOGGER.isLoggable(Level.FINER); boolean isDebugEnabled = LOGGER.isLoggable(Level.FINEST); boolean isErrorEnabled = LOGGER.isLoggable(Level.SEVERE); if (isTraceEnabled) { LOGGER.entering(CLASS_NAME, METHOD_NAME, new Object[] {f, args, results}); } if (isDebugEnabled) { LOGGER.finest(METHOD_NAME + " Invoking factory to create WCM assets..."); } String templateId = getTemplateId(); if (hasStyles()) { String style = args.getProperty("style"); templateId = templateId + "_" + style; } LrpConfig lrpConfig = f.createWidget(templateId, args, results); if (isTraceEnabled) { LOGGER.exiting(CLASS_NAME, METHOD_NAME, lrpConfig); } return lrpConfig; }