@SuppressWarnings("deprecation")
private void injectClass(Object target, Class<?> clazz) throws ReflectionException {
Field[] declaredFields = ClassReflection.getDeclaredFields(clazz);
for (int i = 0, s = declaredFields.length; s > i; i++) {
Field field = declaredFields[i];
if (field.isAnnotationPresent(Mapper.class) || field.isAnnotationPresent(Wire.class)) {
injectField(target, field, field.isAnnotationPresent(Wire.class));
}
}
}