Batch Wolf Java rewrite