send context to the core java class