public void setKey(String strKey) {  
       try {  
           KeyGenerator _generator = KeyGenerator.getInstance ( "DES" );  
           _generator.init( new SecureRandom(strKey.getBytes()));  
           this . key = _generator.generateKey();  
           _generator = null ;  
       } catch (Exception e) {  
           throw new RuntimeException(  
                  "Error initializing SqlMap class. Cause: " + e);  
       }  
    }