You need to verify the 'unit' parameter that it isn't null and throw an exception to indicate which parameter is null.

Also try to prevent doing expression calculation inside an argument. I would do:
    
    long timeoutMs = unit.toMillis(time): 
    waitRequest awaitRequest = new AwaitRequest(namespace, lockProxy.getName(), timeuotMs, threadId, conditionId);

This makes code a lot easier to read.