Javadoc
Service to lock the configuration elements for a particular domain
configuration. All changes to the domain configuration changes
being the domain.xml or the security artifacts must go through
this service to ensure proper synchronization.
The access gate must be implemented using a read-write locking
where multiple users can access in read mode the configuration
while a write access requires a exclusive lock.
A try {...} finally {...} block should be used to ensure the
Lock returned for access is released when the access to the
configuration is not needed any longer.