Implementing java BSP task