Adding code to execute Java for setting of static fields.