if (fields != null) {
for (Iterator fieldIt = fields.iterator(); fieldIt.hasNext();) {
Node fieldNode = (Node) fieldIt.next();
SpeedoField sf = new SpeedoField();
sf.name = getStringAttributeValue(fieldNode, "name", null);
fg.addField(sf);
//depth for a field
String depth = getStringAttributeValue(fieldNode, "fetch-depth", null);
if (depth == null) {
depth = getStringAttributeValue(fieldNode, "depth", null);
logger.log(BasicLevel.WARN, "attribute 'depth' is deprecated, use 'fetch-depth'.");