private static ApiField copyField(ApiField apiField){
  ApiField fieldCopy=new ApiField();
  fieldCopy.name=apiField.name;
  fieldCopy.required=apiField.required;
  fieldCopy.primitiveType=apiField.primitiveType;
  fieldCopy.wrapperName=apiField.wrapperName;
  fieldCopy.description=apiField.description;
  fieldCopy.validValues=Lists.newArrayList(apiField.validValues);
  fieldCopy.collection=apiField.collection;
  fieldCopy.min=apiField.min;
  fieldCopy.max=apiField.max;
  return fieldCopy;
}

private static ApiField copyField ( ApiField apiField ) { ApiField fieldCopy = new ApiField ( ) ; fieldCopy . name = apiField . name ; fieldCopy . required = apiField . required ; fieldCopy . primitiveType = apiField . primitiveType ; fieldCopy . wrapperName = apiField . wrapperName ; fieldCopy . description = apiField . description ; fieldCopy . validValues = Lists . newArrayList ( apiField . validValues ) ; fieldCopy . collection = apiField . collection ; fieldCopy . min = apiField . min ; fieldCopy . max = apiField . max ; return fieldCopy ; }
create a copy of a field , expect for the type
