@Override
 public List<Malfunction> getAllMalfunctionsByIdApplication(Integer applicationId) {
   LOGGER.info("DAO:Get list of malfunction by application id=" + applicationId.toString());
   HashMap<String, Object> hashMap = new HashMap<String, Object>();
   hashMap.put(APPLICATION_ID.getValue(), applicationId);
   return namedParameterJdbcTemplate.query(getMalfunctions, hashMap, malfunctionMapper);
 }
 private MapSqlParameterSource getParametersMap(Malfunction malfunction) {
   MapSqlParameterSource parameterSource = new MapSqlParameterSource();
   parameterSource.addValue(MALFUNCTION_ID.getValue(), malfunction.getMalfunctionId());
   parameterSource.addValue(NAME.getValue(), malfunction.getName());
   parameterSource.addValue(AUTO.getValue(), malfunction.getAuto());
   parameterSource.addValue(DESCRIPTION.getValue(), malfunction.getDescription());
   parameterSource.addValue(APPLICATION_ID.getValue(), malfunction.getApplicationId());
   return parameterSource;
 }