JMethod method = mappingClass.method( JMod.PROTECTED, Void.TYPE, methodName );
method.annotate( Override.class );
JVar source = method.param( codeGenerator.ref( descriptor.getQualifiedName() ), "source" );
JVar target = method.param( targetType, "target" );
JVar context = method.param( codeGenerator.ref( UriContext.class ), CONTEXT );
addFieldCopyOperations( source, target, context, method.body(), stub );
}
private void addFieldCopyOperations( @NotNull JExpression source, @NotNull JExpression target, @NotNull JExpression context, @NotNull JBlock block, boolean isStub ) {