private class EnhancedDTOModelFactory extends DefaultDTOModelFactory {
@SuppressWarnings({"unchecked"})
@Override
protected <E extends Serializable> DTOModel createModelInternal(Class<E> clazz) {
DTOModel model = super.createModelInternal(clazz);
InjectionTarget it = beanManager.createInjectionTarget(beanManager.createAnnotatedType(model.getClass()));
CreationalContext<RequestHandler> cc = beanManager.createCreationalContext(null);
it.inject(model, cc);
return model;
}