* @throws SQLException
* error accured when parsing resultSet
*/
private Feature mapRow2Feature(ResultSet rs) throws SQLException {
// Feature
Feature f = null;
boolean enabled = rs.getInt(COL_FEAT_ENABLE) > 0;
String featUid = rs.getString(COL_FEAT_UID);
f = new Feature(featUid, enabled, rs.getString(COL_FEAT_DESCRIPTION), rs.getString(COL_FEAT_GROUPNAME));
// Strategy
String strategy = rs.getString(COL_FEAT_STRATEGY);
if (strategy != null && !"".equals(strategy)) {
try {
FlippingStrategy flipStrategy = (FlippingStrategy) Class.forName(strategy).newInstance();
flipStrategy.init(featUid, ParameterUtils.toMap(rs.getString(COL_FEAT_EXPRESSION)));
f.setFlippingStrategy(flipStrategy);
} catch (InstantiationException ie) {
throw new FeatureAccessException("Cannot instantiate Strategy, no default constructor available", ie);
} catch (IllegalAccessException iae) {
throw new FeatureAccessException("Cannot instantiate Strategy, no visible constructor", iae);
} catch (ClassNotFoundException e) {