return toXml(gpxType);
}
protected String createUserXml(String userName, String password, String firstName, String lastName, String email) throws JAXBException {
MetadataType metadataType = gpxFactory.createMetadataType();
metadataType.setName(userName);
UserextensionType userextensionType = rcFactory.createUserextensionType();
userextensionType.setEmail(email);
userextensionType.setFirstname(firstName);
userextensionType.setLastname(lastName);
userextensionType.setPassword(password);
ExtensionsType extensionsType = gpxFactory.createExtensionsType();
extensionsType.getAny().add(userextensionType);
metadataType.setExtensions(extensionsType);
GpxType gpxType = createGpxType();
gpxType.setMetadata(metadataType);
return toXml(gpxType);
}