Avoid unnecessary cast
Fix IllegalMonitorStateException by making everything static (class
monitor)
Fix WADL path
Improve logging
Fix source formatting