@Override
    public MessageAdaptor handle(MessageAdaptor request) {
        MicroScope.setupMicroProgram();

        if (imageQueue.size() == 0) {
            System.out
                    .println("No image in current dir, waiting for images coming in ...");
            while (imageQueue.size() == 0) {
            }
        }

        File image = imageQueue.get(0);
        MicroscopeCaptureResponse response = new MicroscopeCaptureResponse();
        response.setId(request.getId());
        response.setImage(image);
        imageQueue.remove(image);
        return response;
    }