Applying security to the domain model elements