if (fields != null) {
for (Field field : fields) {
Map<String, Object> parameter = new HashMap<String, Object>();
parameter.put(NAME, field.getName());
parameter.put(TYPE, field.getType());
AutoWiredProperty awp = field.getAnnotation(AutoWiredProperty.class);
parameter.put(REQUIRED, awp != null && awp.required());
parameters.add(parameter);
}
}
map.put(PARAMETERS, parameters);
steps.add(map);