if (facesConfigDocument == null) {
return new ArrayList<String>();
}
NodeList nl = facesConfigDocument.getElementsByTagName(MANAGED_BEAN_CLASS);
List<String> classes = new ArrayList<String>();
if (nl != null) {
int size = nl.getLength();
for (int i = 0; i < size; i++) {
classes.add(nl.item(i).getFirstChild().getNodeValue().trim());
}
}
return classes;