* @param name
* @param field
* @param nillable
*/
public void addCollection(String name, String field, boolean nillable) {
currentCollection = new JibxCollection();
currentMapping.addChoice(currentCollection);
currentCollection.setName(name);
if(field!=null) currentCollection.setField(JavaSourceUtils.toJavaField(field));
if(nillable) currentCollection.setNillable(Boolean.toString(nillable));
}