* @param useJava50 java version flag
*/
private void createSetAsArrayMethod(final CollectionInfo fieldInfo,
final JClass jClass, final boolean useJava50) {
JMethod method = new JMethod("set" + fieldInfo.getMethodSuffix());
final JParameter parameter = new JParameter(new JArrayType(
fieldInfo.getContentType().getJType(), useJava50),
fieldInfo.getContentName() + "Array");
method.addParameter(parameter);
JSourceCode sourceCode = method.getSourceCode();