class CipherFactory {

    private CipherFactory() {
        // utility class
    }

    /**
     * Get a new block cipher object for the given algorithm.
     *
     * @param algorithm the algorithm
     * @return a new cipher object
     */
    public static BlockCipher getBlockCipher(String algorithm) {<FILL_FUNCTION_BODY>}
}

        algorithm = algorithm.toUpperCase();
        switch (algorithm) {
        case "XTEA":
            return new XTEA();
        case "AES":
            return new AES();
        case "FOG":
            return new Fog();
        default:
            throw DbException.get(ErrorCode.UNSUPPORTED_CIPHER, algorithm);
        }
    
<no_super_class>