@PUT
    @Consumes(MediaType.APPLICATION_XML)
    @Produces(MediaType.APPLICATION_XML)
    public Response put(String xmlRequest) throws UnsupportedEncodingException {
        Response response = null;
        try {
            Request request = RequestFactory.createRequest(xmlRequest);
            if (request  instanceof RegisterRequest)
            { 
                RegisterResponse regResp = (RegisterResponse) InDoor.processRegisterRequest((RegisterRequest) request);
                response = regResp; 
            }
            else if (request  instanceof BetRequest)
            {
                BetResponse betResp = (BetResponse) InDoor.processBetRequest((BetRequest) request);                
                response = betResp; 
            }
            else if (request  instanceof SpinRequest)
            {
                SpinResponse spinResp = (SpinResponse) InDoor.processSpinRequest((SpinRequest) request);                
                response = spinResp; 
            }          
            
            
        } catch (Exception e) {
            e.printStackTrace();
            response = new ExceptionResponse("", "", e.getClass().getName(), e.getMessage());
        }
        return response;
    }