* @param m
* Map
* @return String
*/
public String makeAdditionalTagAttr(Map<String, Object> m) {
AttributeCallback additionAttrValueRenderer = this.additionAttrValueRenderer;
if (additionAttrValueRenderer == null) {
additionAttrValueRenderer = defaultAdditionAttrValueRenderer;
}
List<String> result = new ArrayList<String>();
// prepare additionalAttrMap
Map<String, Object> additionalAttrMap = new HashMap<String, Object>();
additionalAttrMap.putAll(originalAdditionalAttrMap);
if (m != null) {
additionalAttrMap.putAll(m);
}
// to string
for (String attrName : additionalAttrMap.keySet()) {
Object attrValue = additionalAttrMap.get(attrName);
if (additionAttrValueRenderer != null) {
attrValue = additionAttrValueRenderer.callback(attrName,
attrValue);
}
if (attrValue != null) {
String attr = String
.format("%s=\"%s\"", attrName, StringEscapeUtils