RAVE-262: Create annotation-based, declarative, object locking implementation https://issues.apache.org/jira/browse/RAVE-262