* this method for it to have any effect.
*
* @param library JSFLibrary instance
*/
private void implementationFlagSet(TapestryLibrary library) {
TapestryLibraryRegistry jsfLibReg = TapestryLibraryRegistryUtil.getInstance().getTapestryLibraryRegistry();
if (jsfLibReg != null) {
TapestryLibrary defaultImpl = jsfLibReg.getDefaultImplementation();
if (
library.isImplementation() &&
defaultImpl == null
) {
jsfLibReg.setDefaultImplementation(library);
} else if (
!library.isImplementation() &&
(defaultImpl != null && library.getID().equals(defaultImpl.getID())))
{
setNewDefaultImplementation();