DRY = Don't Repeat Yourself (avoid duplicate code which means duplicated
maintenance of code)
Signed-off-by: Roland Häder <roland@mxchange.org>
}
// Try to get context parameter
- String contextParameter = FacesContext.getCurrentInstance().getExternalContext().getInitParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N
+ String contextParameter = this.getStringContextParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N
// Is it set and true?
boolean isEnabled = ((contextParameter instanceof String) && (contextParameter.equals("true"))); //NOI18N