AMQ-5005. Fix for scala plugin