{
GenericPair<String, Object> namedConstant;
if ( namedConstants[i] instanceof GenericPair)
namedConstant = (GenericPair) namedConstants[i];
else
namedConstant = new GenericPair( "" + namedConstants[i], namedConstants[i]);
result[i] = new TransformerWithObjectTransformer(namedConstant.getFirst(), new ConstantTransformer(namedConstant.getSecond()));
}
return result;