public Connection getConnection() 
    {
        if (_connection == null)
        {
            try
            {
                _connection =  ConnectionContext.getConnection(); 
                if (!_connection.isConnected())
                {
                    _connection.connect("USER","_SYSTEM","DATA");
	                }
	            }
	            catch (GlobalsException ex)
	            {
	               log.WriteToFile(ex.getMessage(), true);
	               throw ex;
	            }
	            catch (Exception ex)
	            {
	            	log.WriteToFile(ex.getMessage(), true);
	   	        }
	        }
	        return _connection;
	    }