}
return false;
}
private Method findMethodWithConversion(Object value) throws ComponentDefinitionException {
ExecutionContext ctx = ExecutionContext.Holder.getContext();
List<Method> matchingMethods = new ArrayList<Method>();
for (Method m : setters) {
Type paramType = m.getGenericParameterTypes()[0];
if (ctx.canConvert(value, new GenericType(paramType))) matchingMethods.add(m);
}
if (matchingMethods.isEmpty()) return null;
else if (matchingMethods.size() == 1) return matchingMethods.get(0);
else throw new ComponentDefinitionException(