public Element toXml(Document doc) throws SysInvalidArgumentException {
logger.debug("entering toXml at " + this.toString());
if (doc == null) {
String msg = ("Cannot serialize to XML, document was null");
logger.error(msg);
throw new SysInvalidArgumentException(msg);
}
Element node = doc.createElement(this.getElementName());
String created = DateTimeUtil.dateTime2String(this.getCreated());
property2Attribute(CREATED, created, node);