public void populateDSMetadata(final DistributionSet distributionSet){
  removeAllItems();
  if (null == distributionSet) {
    return;
  }
  selectedDistSetId=distributionSet.getId();
  final List<DistributionSetMetadata> dsMetadataList=distributionSetManagement.findDistributionSetMetadataByDistributionSetId(selectedDistSetId);
  if (null != dsMetadataList && !dsMetadataList.isEmpty()) {
    dsMetadataList.forEach(null);
  }
}

public void populateDSMetadata ( final DistributionSet distributionSet ) { removeAllItems ( ) ; if ( null == distributionSet ) { return ; } selectedDistSetId = distributionSet . getId ( ) ; final List < DistributionSetMetadata > dsMetadataList = distributionSetManagement . findDistributionSetMetadataByDistributionSetId ( selectedDistSetId ) ; if ( null != dsMetadataList && ! dsMetadataList . isEmpty ( ) ) { dsMetadataList . forEach ( null ) ; } }
populate software module metadata .
