final NewMethodParameter objectOutputStream = (NewMethodParameter) newMethodParameters.get(1);
objectOutputStream.setFinal(true);
objectOutputStream.setName(SerializationConstants.CLIENT_OBJECT_WRITER_IMPL_WRITE0_OBJECT_OUTPUT_STREAM_PARAMETER);
final WriteArrayTemplatedFile body = new WriteArrayTemplatedFile();
body.setType(type);
newMethod.setBody(body);
if (type.getComponentType() == context.getLong()) {
newMethod.addMetaData("com.google.gwt.core.client.UnsafeNativeLong", "");
}