renderKitFactory.addRenderKit("org.apache.myfaces.trinidad.core.desktop",
renderKit);
renderKitFactory.addRenderKit("org.apache.myfaces.trinidad.core.pda",
renderKit);
ConfigParser parser = new ConfigParser();
Enumeration<URL> facesConfigEnum =getClass().getClassLoader().getResources("META-INF/faces-config.xml");
while (facesConfigEnum.hasMoreElements() ) {
URL url = facesConfigEnum.nextElement();
if (url.toExternalForm().contains("trinidad")) {
parser.parse(url);
}
}
}