}
}
}
private void doInjection(final Object obj, Class<?> cls, final ClassLoader classLoader, final Map<?, ?> data) throws Exception {
Properties batchProps = (Properties) data.get(DataKey.BATCH_PROPERTY);
boolean hasBatchProps = batchProps != null && batchProps.getProperty().size() > 0;
while (cls != null && cls != Object.class && !cls.getPackage().getName().startsWith("javax.batch")) {
for (Field f : cls.getDeclaredFields()) {
if (!f.isSynthetic()) {
Object fieldVal = null;
if (f.getAnnotation(Inject.class) != null) {