code: private static String[] getReferenceAttributes(String name) {
          if (name.endsWith(XMLConfigConstants.CFG_REFERENCE_SUFFIX)) {
              return new String[] { name, name.substring(0, name.length() - XMLConfigConstants.CFG_REFERENCE_SUFFIX.length()) };
          } else {
              return new String[] { name + XMLConfigConstants.CFG_REFERENCE_SUFFIX, name };
          }
      }
docs: /*
  String[0] is always name + "Ref", and String[1] is always name.