public String encodePassword(String password) throws PasswordEncodingException {
try {
return encodeWeb(password.getBytes("UTF-8"));
}
catch (UnsupportedEncodingException e) {
throw new PasswordEncodingException("Exception encoding password", e);
}
}