public JavaMethod getXMLSetMethod(PropertySG pController, JavaSource pSource) throws SAXException {
JavaQName arrayClass = getArrayClass();
String fieldName = pController.getXMLFieldName();
String methodName = pController.getXMLSetMethodName();
JavaMethod result = pSource.newJavaMethod(methodName, "void", JavaSource.PUBLIC);
Parameter array = result.addParam(arrayClass, "pValue");
if (!pSource.isInterface()) {
result.addLine(fieldName, ".clear();");
result.addIf(array, " != null");
DirectAccessible i = result.addForArray(int.class, array);
Object o = new Object[]{array, "[", i, "]"};