}
@SuppressWarnings("unchecked")
public static Engine createEngine(final ServletContext servletContext, final String configFiles, final Map<String, Object> extraSettings) {
final Map<String, Object> settings;
final Props props;
props = loadProps(Engine.createConfigProps(DEFAULT_WEB_PROPERTIES), servletContext, configFiles);
settings = new HashMap<String, Object>();
settings.put(CFG.SERVLET_CONTEXT, servletContext);
if (extraSettings != null) {
settings.putAll(extraSettings);