String theme = params.getParameter("MIR.Layout.Theme", "flatmir");
String file = params.getParameter("MIR.DefaultLayout.CSS", "flatly.min");
String mirBootstrapCSSURL = String.format(Locale.ROOT, "%srsc/sass/mir-layout/scss/%s-%s.css", baseURL, theme, file);
mcrViewerConfiguration.addCSS(mirBootstrapCSSURL);
String customLayout = params.getParameter("MIR.CustomLayout.CSS", "");
if (customLayout.length() > 0) {
String customLayoutURL = String.format(Locale.ROOT, "%scss/%s", baseURL, customLayout);
String customJS = params.getParameter("MIR.CustomLayout.JS", "");
if (customJS.length() > 0) {
mcrViewerConfiguration.addScript(String.format(Locale.ROOT, "%sjs/%s", baseURL, customJS));