question: static JpaTarget updateTargetInfo ( @ NotNull final JpaTarget target , @ NotNull final TargetUpdateStatus status , final boolean setInstalledDate , final TargetInfoRepository targetInfoRepository , final EntityManager entityManager ) { final JpaTargetInfo ts = ( JpaTargetInfo ) target . getTargetInfo ( ) ; ts . setUpdateStatus ( status ) ; if ( setInstalledDate ) { ts . setInstallationDate ( System . currentTimeMillis ( ) ) ; } targetInfoRepository . save ( ts ) ; return entityManager . merge ( target ) ; }
target:  Internal helper method used only inside service level. As a result is no additional security necessary.