You were using an unsupported configuration involving an A record to Ricky's shared IP. The shared IP is different for Tommy, and this improper configuration is also why you see two different things for the plain domain and www. The name servers are the supported way of pointing a domain here.
Moving this to questions for better visibility. I think it is, but I'm not terribly familiar with the Java capabilities, so someone else should be able to say for sure.