code: public static boolean verifyProjectType( SimpleFeatureType schema, IHMProgressMonitor pm ) {
          String searchedField = PipesTrentoP.ID.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.DRAIN_AREA.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.INITIAL_ELEVATION.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.FINAL_ELEVATION.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.RUNOFF_COEFFICIENT.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.KS.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.MINIMUM_PIPE_SLOPE.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.AVERAGE_RESIDENCE_TIME.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.PIPE_SECTION_TYPE.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.AVERAGE_SLOPE.getAttributeName();
          verifyFeatureKey(findAttributeName(schema, searchedField), searchedField, pm);
          searchedField = PipesTrentoP.PER_AREA.getAttributeName();
          String attributeName = findAttributeName(schema, searchedField);
          if (attributeName != null) {
              return true;
          }
  
          return false;
  
      }
docs: Verify the schema.
  
  <p>
  Verify if the FeatureCollection contains all the needed fields.
  </p>
  @param schema is yhe type for the project mode.
  @param pm
  @return true if there is the percentage of the area.