generateField(valueName, commonTypes.value);
sw.println(valueName + " = new Value() { ");
if(accessors.hasSynchronousGetter()) {
sw.indentln("public void getValue(AsyncCallback callback) { callback.onSuccess(" + accessors.getterExpr() + "); } ");
} else if(accessors.hasAsynchronousGetter()) {
sw.indentln("public void getValue(AsyncCallback callback) {\n\t\t\t\t"+accessors.callAsyncGetter("callback")+";\n\t\t\t\t} ");
} else {
sw.indentln("public void getValue(AsyncCallback callback) { callback.onFailure(null); } ");
}
if (accessors.hasSynchronousSetter()) {
sw.indentln("public void setValue(Object value, AsyncCallback callback) { try {\n\t\t\t\t" +