public void populateMetadata ( final Target target ) { removeAllItems ( ) ; if ( target == null ) { return ; } selectedTargetId = target . getId ( ) ; final List < TargetMetadata > targetMetadataList = targetManagement . findMetaDataByControllerId ( PageRequest . of ( 0 , MAX_METADATA_QUERY ) , target . getControllerId ( ) ) . getContent ( ) ; if ( targetMetadataList != null && ! targetMetadataList . isEmpty ( ) ) { targetMetadataList . forEach ( this :: setMetadataProperties ) ; } }
Populate target metadata .