EncryptionType type = ( EncryptionType ) it.next();
    private void prepareEncryptionTypes()    {        String[] encryptionTypeStrings = null;        String key = ENCRYPTION_TYPES_KEY;        if ( configuration.containsKey( key ) )        {            encryptionTypeStrings = ( get( key ) ).split( "\\s" );        }        else        {            encryptionTypeStrings = DEFAULT_ENCRYPTION_TYPES;        }        List encTypes = new ArrayList();        for ( int i = 0; i < encryptionTypeStrings.length; i++ )        {            String enc = encryptionTypeStrings[i];            Iterator it = EncryptionType.VALUES.iterator();            while ( it.hasNext() )            {                EncryptionType type = ( EncryptionType ) it.next();                if ( type.toString().equalsIgnoreCase( enc ) )                {                    encTypes.add( type );                }            }        }        encryptionTypes = ( EncryptionType[] ) encTypes.toArray( new EncryptionType[encTypes.size()] );    }