/** * Reads the features templates from an input stream and puts them in global map * * @param input the input stream from which to read the feature templates */ public static void s_readFeatureTemplates(InputStream input) { try { ArrayList<FeatureTemplate> features = FeatureTemplateLoader.s_readTemplates(input); synchronized (s_features) { for (FeatureTemplate f : features) { s_features.put(f.getName(), f); } } } catch (IOException e) { logger.error("IOException while reading device features", e); } catch (ParsingException e) { logger.error("Parsing exception while reading device features", e); } }