Update Domain.java

The name should be same and variable name.