*/
private StateMap attributeToState(String attribute) {
StateMap result = StateMap.create();
if ((attribute != null) && !attribute.equals("")) {
log("Unescaped attribute: ", URL.decodeComponent(attribute));
result.fromJson(URL.decodeComponent(attribute));
log("State map: ", result.toJson());
}
return result;
}