Completed implementation with BatchResourceBean