Added fromAttributes to domain objects. Added helper class (Tools).