ByteArrayInputStream puzzleInputStream = null;
ByteArrayOutputStream puzzleOutputStream = null;
Bucket puzzleDataBucket = null;
FilterStatus filterStatus = null;
try {
IntroductionPuzzle puzzle = identityManager.getIntroductionPuzzle(req.getParam("PuzzleID"));
// TODO: Store the list of allowed mime types in a constant. Also consider that we might have introduction puzzles with "Type=Audio" in the future.
if(!puzzle.MimeType.equalsIgnoreCase("image/jpeg") &&
!puzzle.MimeType.equalsIgnoreCase("image/gif") &&
!puzzle.MimeType.equalsIgnoreCase("image/png")) {