// Obtains a reference to the collection-based field
this.field = fields.get(field.getPropertyInfo().getName(false));
// Creates the method
JMethod $set = writer.declareMethod(this.field.type(), "get" + prop.getName(true));
// Creates the JVar that will hold the method's parameter
//JVar $value = writer.addParameter( this.field.type(), prop.getName(false));
// Creates the methods's JBlock
JBlock body = $set.body();
// Creates the assignment (method parameter to instance variable)