Convert HttpContains.java to groovy