Get CustomControlExample running fixing NPEs and stuff.