neurosky mind wave mobile and bc417 bluetooth module connection with arduino meg

iam trying to connect neurosky mind wave mobile with arduino mega 2560 via bc417 bluetooth module.
the problem is that i can not pair the headset and the bc417 with arduino. help me out that how can i pair these things and get raw data from the headset and use this data for further application by arduino

the problem is that i can not pair the headset and the bc417 with arduino.

What does the code to do this look like? What does it actually do?