if(connectionType == null) {
logger.error("Attribute 'type' of connection " + connectionName + " is not setted");
}else if(connectionType.equalsIgnoreCase("jndi")) {
connection = new JNDIConnection(connSb);
} else if (connectionType.equalsIgnoreCase("jdbc")) {
connection = new JDBCConnection(connSb);
} else if (connectionType.equalsIgnoreCase("xmla")) {
connection = new XMLAConnection(connSb);
} else {
logger.error("Value '"+ connectionType +"' in not a valid value for attribute 'type' in connection " + connectionName);
}