@Override
public void configureXStream(final XStream xstream) {
super.configureXStream(xstream);
xstream.registerLocalConverter(UserChangePasswordResource.class, "oldPassword",
new HtmlUnescapeStringConverter(true));
xstream
.registerLocalConverter(UserChangePasswordResource.class, "newPassword", new HtmlUnescapeStringConverter(true));
xstream.registerLocalConverter(RoleResource.class, "id", new HtmlUnescapeStringConverter(true));
xstream.registerLocalConverter(UserResource.class, "userId", new HtmlUnescapeStringConverter(true));
xstream.registerLocalConverter(UserResource.class, "password", new HtmlUnescapeStringConverter(true));
xstream.registerLocalConverter(RoleAndPrivilegeListResource.class, "id", new HtmlUnescapeStringConverter(true));
xstream.registerLocalConverter(UserResource.class, "roles", new HtmlUnescapeStringCollectionConverter("role"));
xstream.registerLocalConverter(RoleResource.class, "roles", new HtmlUnescapeStringCollectionConverter("role"));
xstream.registerLocalConverter(RoleResource.class, "privileges",
new HtmlUnescapeStringCollectionConverter("privilege"));