*/
public WayPoint convertToWayPoint() {
WayPoint wpt = new WayPoint(getCoor());
wpt.put("time", timeFormatter.format(new Date(Math.round(time * 1000))));
if (text != null) {
wpt.addExtension("text", text);
} else if (dataProvider != null) {
for (String key : dataProvider.getTemplateKeys()) {
Object value = dataProvider.getTemplateValue(key, false);
if (value != null && GpxConstants.WPT_KEYS.contains(key)) {
wpt.put(key, value);