private ReentrantLock serverAvailabilityLock;
@Override
public void before(Method method, Object[] args, Object target) throws Throwable {
if (serverAvailabilityLock.isLocked() && !serverAvailabilityLock.isHeldByCurrentThread()) {
throw new ModelLoadInProgressException("New Application model is being deployed now");
}
}