public static String extendedInformationToStringData(ExtendedInformation extendedinformation) throws UnsupportedEncodingException {
String ret = null;
if(extendedinformation != null){
// We must base64 encode string for UTF safety
HashMap a = new Base64PutHashMap();
a.putAll((HashMap)extendedinformation.saveData());
java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
java.beans.XMLEncoder encoder = new java.beans.XMLEncoder(baos);
encoder.writeObject(a);
encoder.close();
ret = baos.toString("UTF8");