: existingJsfImplementation;
}
private JsfLibrary getExistingOrDefaultJsfLibrary(
final Element configuration) {
final Pom pom = projectOperations
.getPomFromModuleName(projectOperations.getFocusedModuleName());
JsfLibrary existingJsfImplementation = null;
for (final JsfLibrary value : JsfLibrary.values()) {
final Element jsfDependencyElement = XmlUtils.findFirstElement(
JSF_LIBRARY_XPATH + "[@id = '" + value.name() + "']"
+ DEPENDENCY_XPATH, configuration);
if (jsfDependencyElement != null
&& pom.isDependencyRegistered(new Dependency(
jsfDependencyElement))) {
existingJsfImplementation = value;
break;
}
}