You can clone with HTTPS or SSH.
private UIComponent createComponentResource(FacesContext ctx, ResourceDependency dep) { Expressions exprs = expressionsMap.get(dep); Application app = ctx.getApplication(); String resname = exprs.getName(ctx); UIComponent c = ctx.getApplication().createComponent("javax.faces.Output"); c.setRendererType(app.getResourceHandler().getRendererTypeForResourceName(resname)); Map<String,Object> attrs = c.getAttributes(); attrs.put("name", resname); if (exprs.library != null) { attrs.put("library", exprs.getLibrary(ctx)); } if (exprs.target != null) { attrs.put("target", exprs.getTarget(ctx)); } return c; }