@Override public BatchCreateRequest<V> build() { @SuppressWarnings("unchecked") BatchCreateDecoder<K> decoder = new BatchCreateDecoder<K>((TypeSpec<K>)_resourceSpec.getKeyType(), _resourceSpec.getKeyParts(), _resourceSpec.getComplexKeyType()); return new BatchCreateRequest<V>(buildReadOnlyHeaders(), buildReadOnlyCookies(), decoder, buildReadOnlyInput(), _resourceSpec, buildReadOnlyQueryParameters(), getQueryParamClasses(), getBaseUriTemplate(), buildReadOnlyPathKeys(), getRequestOptions(), _streamingAttachments == null ? null : Collections.unmodifiableList(_streamingAttachments)); }