Field field = new Field();
field.setVisibility(JavaVisibility.PRIVATE);
field.setType(FullyQualifiedJavaType.getObjectInstance());
field.setName("record"); //$NON-NLS-1$
innerClass.addField(field);
method = new Method();
method.setVisibility(JavaVisibility.PUBLIC);
method.setReturnType(FullyQualifiedJavaType.getObjectInstance());
method.setName("getRecord"); //$NON-NLS-1$