beans schema constructor not working, might have to do with 'this'