if (element != null && element.length() > 0) {
ElementSelector elementSelector = null;
if (ThemeConstants.UNIVERSAL_SELECTOR.equals(element)) {
elementSelector = MODEL_FACTORY.createUniversalSelector();
} else {
TypeSelector typeSelector =
MODEL_FACTORY.createTypeSelector();
typeSelector.setType(element);
elementSelector = typeSelector;
}
if (elementSelector != null) {
if (namespace != null && namespace.length() > 0) {
elementSelector.setNamespacePrefix(namespace);