Locale locale = (country == null) ? new Locale(language) : new Locale(language, country);
format = new SimpleDateFormat(picture, locale);
} else {
format = new SimpleDateFormat(picture);
}
return new StringValue(format.format(value.toJavaObject(java.util.Date.class)));
} catch (java.lang.IllegalArgumentException e) {
throw new XPathException(e.getMessage());
}
}