fixed Type Erasures which lead to Unit return value instead of None
waitForGet returns an Option instead of a possible null as it's scala api