Made the validate method non static.
Added ---- comment.
Moved PersonState.validate into MutableState as a non static member.
Generate both address and person.
Also include @Id attribute in with methods.
Added isOptionalOrId() on Attribute.