Support domain classes using builder pattern