xGenerator.setCharset("UTF-8");
vcard.addExtendedType(xGenerator);
vcard.addExtendedType(new ExtendedType("X-LONG-STRING", "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"));
vcard.addImpp(new ImppType("im:alice@example.com"));
vcard.addImpp(new ImppType(new URI("im:alice2@example.com")));
ImppType impp = new ImppType();
impp.setUri(new URI("im:alice3@example.com"));
impp.addParam(ImppParamType.HOME)
.addParam(ImppParamType.PREF)
.addExtendedParam(new ExtendedParamType("X-BLA", "BLE", VCardTypeName.IMPP));
vcard.addImpp(impp);
((VCardErrorHandler)vcard).setThrowExceptions(false);