private void initContext(){
  if (Context.getCurrentContext() == null) {
    Context.enter();
  }
}

private void initContext ( ) { if ( Context . getCurrentContext ( ) == null ) { Context . enter ( ) ; } }
makes sure the context is properly initialized .
