else
return null;
}
private static String createUserXml(String userName, String password, String firstName, String lastName, String email) throws IOException {
ObjectFactory objectFactory = new ObjectFactory();
MetadataType metadataType = objectFactory.createMetadataType();
metadataType.setName(asUtf8(userName));
UserextensionType userextensionType = new slash.navigation.gpx.routecatalog10.ObjectFactory().createUserextensionType();
userextensionType.setEmail(asUtf8(email));
userextensionType.setFirstname(asUtf8(firstName));
userextensionType.setLastname(asUtf8(lastName));
userextensionType.setPassword(asUtf8(password));
ExtensionsType extensionsType = objectFactory.createExtensionsType();
extensionsType.getAny().add(userextensionType);
metadataType.setExtensions(extensionsType);
GpxType gpxType = GpxUtil.createGpxType();
gpxType.setMetadata(metadataType);