//the entry there takes precedence
boolean hasForClass = !Object.class.equals(conv.forClass());
boolean hasValue = conv.value().length() > 0;
if (hasForClass || hasValue)
{
ConverterImpl converter = new ConverterImpl();
if (hasForClass)
{
converter.setForClass(conv.forClass().getName());
}
if (hasValue)
{
converter.setConverterId(conv.value());
}
converter.setConverterClass(clazz.getName());
facesConfig.addConverter(converter);
}
else
{
// TODO MartinKoci MYFACES-3053