public static Map<String,String> makeFeatureIdByTypeMap(Map<String,Object> parameters){
  Map<String,String> featureIdByType=FastMap.newInstance();
  if (parameters == null)   return featureIdByType;
  for (  Map.Entry<String,Object> entry : parameters.entrySet()) {
    String parameterName=entry.getKey();
    if (parameterName.startsWith("pft_")) {
      String productFeatureTypeId=parameterName.substring(4);
      String productFeatureId=(String)entry.getValue();
      if (UtilValidate.isNotEmpty(productFeatureId)) {
        featureIdByType.put(productFeatureTypeId,productFeatureId);
      }
    }
  }
  return featureIdByType;
}

public static Map < String , String > makeFeatureIdByTypeMap ( Map < String , Object > parameters ) { Map < String , String > featureIdByType = FastMap . newInstance ( ) ; if ( parameters == null ) return featureIdByType ; for ( Map . Entry < String , Object > entry : parameters . entrySet ( ) ) { String parameterName = entry . getKey ( ) ; if ( parameterName . startsWith ( "pft_" ) ) { String productFeatureTypeId = parameterName . substring ( 4 ) ; String productFeatureId = ( String ) entry . getValue ( ) ; if ( UtilValidate . isNotEmpty ( productFeatureId ) ) { featureIdByType . put ( productFeatureTypeId , productFeatureId ) ; } } } return featureIdByType ; }
handles parameters coming in prefixed with " pft_ " where the text in the key following the prefix is a productfeaturetypeid and the value is a productfeatureid ; meant to be used with drop - downs and such
