Setup the get bucket ID computation in one method.
Added Javadoc