{
String encodedAttributes = Serializer.serializeToBase64( profile.getAttributes() );
Element attributes = c_dom.createElement( ATTRIBUTES_TAG );
user.appendChild( attributes );
Text value = c_dom.createTextNode( encodedAttributes );
attributes.appendChild( value );
}
catch ( IOException e )
{
throw new WikiSecurityException( "Could not save user profile attribute. Reason: " + e.getMessage(), e );
}