LPS-49438 source format

Hi Brian,

I've worked on the issues you pointed out in my previous PR:
- I've removed all calls to service methods, replacing them by SQL queries.
- All queries are bounded by some predicate, so that the number of results is small.

Regarding the values used as keys, they've been always like that (uppercased and with blanks). That was changed in commit e8414b2, where the hardcoded value was subsituted by a lang key (keys are uppercased automatically by the services; see DLFileEntryTypeLocalServiceImpl around ilne 80).

Thanks!