add java forvard block