}
private void loadFromConfigurationDocument( final Document doc ) throws DocumentException {
final Element rootElement = doc.getRootElement();
if ( ( rootElement != null ) && !doc.getRootElement().getName().equals( ROOT_ELEMENT ) ) {
throw new DocumentException( messages.getErrorString( "EmailConfigurationXml.ERROR_0002_INVALID_ROOT_ELEMENT" ) ); //$NON-NLS-1$
}
setSmtpHost( getStringValue( doc, SMTP_HOST_XPATH ) );
setSmtpPort( getIntegerPortValue( doc, SMTP_PORT_XPATH ) );
setSmtpProtocol( getStringValue( doc, SMTP_PROTOCOL_XPATH ) );