final MethodSource<JavaClassSource> load = restImpl.addMethod();
setLoadMethodSignature( context, load );
setLoadMethodBody( context, load );
}
private void setLoadMethodBody( final SourceGenerationContext context,
<BUG>final MethodSource<JavaClassSource> load ) {
final StringBuilder body = new StringBuilder();
final List<DataHolder> dataHolders = context.getFormDefinition().getDataHolders();
if ( dataHolders.size() > 1 )
throw new UnsupportedOperationException( "Cannot load form models with multiple data models." );</BUG>
body.append( "return " )

final MethodSource<JavaClassSource> load = restImpl.addMethod();
setLoadMethodSignature( context, load );
setLoadMethodBody( context, load );
}
private void setLoadMethodBody( final SourceGenerationContext context,
final MethodSource<JavaClassSource> load ) {
checkFormDefinition( context.getFormDefinition() );
final StringBuilder body = new StringBuilder();
body.append( "return " )
