XmlElement xmlElement = new XmlElement("jdbcConnection"); //$NON-NLS-1$
xmlElement.addAttribute(new Attribute("driverClass", driverClass)); //$NON-NLS-1$
xmlElement.addAttribute(new Attribute("connectionURL", connectionURL)); //$NON-NLS-1$
if (stringHasValue(userId)) {
xmlElement.addAttribute(new Attribute("userId", userId)); //$NON-NLS-1$
}
if (stringHasValue(password)) {
xmlElement.addAttribute(new Attribute("password", password)); //$NON-NLS-1$
}