}
}
final Class representation = factory.getClazz(beanKey);
if (representation == null) {
if (isDto) {
throw new BeanFactoryUnableToLocateRepresentationException(factory.toString(),
dtoFieldName, beanKey, true);
} else {
throw new BeanFactoryUnableToLocateRepresentationException(factory.toString(),
entityFieldName, beanKey, false);
}
}
return representation;
}