BaseInjection (Element element) { String place = StringUtil.notNullize(element.getChildText("place")); if (place.startsWith("xmlAttribute")) { return new XmlAttributeInjection(); } else if (place.startsWith("xmlTag")) { return new XmlTagInjection(); } else { return new BaseInjection(XML_SUPPORT_ID); } }