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