enhance preconditions in REST classes