{
String prop = parsePlaceholderValues(property);
Collection c = muleContext.getRegistry().lookupObjects(PropertyConverter.class);
for (Iterator iterator = c.iterator(); iterator.hasNext();)
{
PropertyConverter converter = (PropertyConverter) iterator.next();
if (converter.getType().equals(type))
{
return converter.convert(prop, muleContext);
}
}
throw new IllegalArgumentException(AnnotationsMessages.noPropertyConverterForType(type).getMessage());
}