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