Introduced LegalType entity class, transfer objects and legal types beans
Merge branch 'working'