&& paramTypes.length == 1
&& createMap.get(name.substring(3)) == null) {
String className = name.substring(3);
String xmlName = toXmlName(name.substring(3));
TagName tagName = method.getAnnotation(TagName.class);
if (tagName != null) {
for (String propName : tagName.value()) {
addProp(propName, method);
}
}
else
addProp(xmlName, method);
addProp(toCamelName(className), method);
}
else if ((name.startsWith("create")
&& paramTypes.length == 0
&& ! void.class.equals(method.getReturnType()))) {
Class<?> type = method.getReturnType();
Method setter = setterMap.get(name.substring(6));
CreateAttribute attr = new CreateAttribute(method, type, setter);
String xmlName = toXmlName(name.substring(6));
TagName tagName = method.getAnnotation(TagName.class);
if (tagName != null) {
for (String propName : tagName.value()) {
addProp(propName, attr);
}
}
else {
addProp(xmlName, attr);