final Element element = (Element) object;
if (element.getName().equalsIgnoreCase("repository")) {
return new Repository(element);
} else if (element.getName().equalsIgnoreCase("feature")) {
return new Feature(element);
} else if (element.getName().equalsIgnoreCase("bundle")) {
return new Bundle(element);
} else if (element.getName().equalsIgnoreCase("features")) {
return new Features(element, null);
} else {