/**
  * Adds information about referenced modules.
  *
  * @param pomDescriptor The descriptor for the current POM.
  * @param modules The modules.
  * @param store The database.
  */
 private void addModules(BaseProfileDescriptor pomDescriptor, List<String> modules, Store store) {
   for (String module : modules) {
     MavenModuleDescriptor moduleDescriptor = store.create(MavenModuleDescriptor.class);
     moduleDescriptor.setName(module);
     pomDescriptor.getModules().add(moduleDescriptor);
   }
 }
 /**
  * Adds information about defined properties.
  *
  * @param pomDescriptor The descriptor for the current POM.
  * @param properties The properties information.
  * @param store The database.
  */
 private void addProperties(
     BaseProfileDescriptor pomDescriptor, Properties properties, Store store) {
   Set<Entry<Object, Object>> entrySet = properties.entrySet();
   for (Entry<Object, Object> entry : entrySet) {
     PropertyDescriptor propertyDescriptor = store.create(PropertyDescriptor.class);
     propertyDescriptor.setName(entry.getKey().toString());
     propertyDescriptor.setValue(entry.getValue().toString());
     pomDescriptor.getProperties().add(propertyDescriptor);
   }
 }
 /**
  * Adds information about plugins.
  *
  * @param pomDescriptor The descriptor for the current POM.
  * @param build Information required to build the project.
  * @param scannerContext The scanner context.
  */
 private void addPlugins(
     BaseProfileDescriptor pomDescriptor, BuildBase build, ScannerContext scannerContext) {
   if (null == build) {
     return;
   }
   List<Plugin> plugins = build.getPlugins();
   List<MavenPluginDescriptor> pluginDescriptors =
       createMavenPluginDescriptors(plugins, scannerContext);
   pomDescriptor.getPlugins().addAll(pluginDescriptors);
 }
 /**
  * Adds information about managed plugins.
  *
  * @param pomDescriptor The descriptor for the current POM.
  * @param build Information required to build the project.
  * @param scannerContext The scanner context.
  */
 private void addManagedPlugins(
     BaseProfileDescriptor pomDescriptor, BuildBase build, ScannerContext scannerContext) {
   if (null == build) {
     return;
   }
   PluginManagement pluginManagement = build.getPluginManagement();
   if (null == pluginManagement) {
     return;
   }
   List<MavenPluginDescriptor> pluginDescriptors =
       createMavenPluginDescriptors(pluginManagement.getPlugins(), scannerContext);
   pomDescriptor.getManagedPlugins().addAll(pluginDescriptors);
 }