i think this is not the right way to solve things. i would take out the actual logic form validateClassName into isValidClassName (in the UoW) that just returns a boolean. then you can call that directly. and valdiateClassName just calls `if(!isValidClassName(...)) {throw...`