Chronic Pain and Neurofeedback

This video from EEG Info covers treatment for chronic pain using neurofeedback. R.N. Caroline Grierson explains how they use neurofeedback to redirect a patients attention to pain in order to lessen its severity. How is this treatment a training, and how does it control the patients pain?