Id Manager: added Java Hash Function