MYFACES-2862 [PERF] Improve efficiency of Application.createComponent(FacesContext,Resource) in production (Thanks to Martin Koci for this patch)