LPS-46537: Fix Build. Only copy the sonatype properties and the ivy properties if these properties are defined.
LPS-46860 no need to fetch the each entity in order to populate the list of primary keys. This is very slow if a large number of organizations or userGroups exists.
LPS-46860 SF
LPS-46626 To set a non user in PrincipalThreadLocal.setName we should use null instead of 0
LPS-46626 I almost read it as the current thread's name