}
}
public void create(Resource resource, ResourceResponseHandler handler) {
RequestBuilder builder = buildPost();
ResourceResponseCallback requestCallback = new ResourceCreationResponseCallback(factory, handler);
try {
Request response = builder.sendRequest(resource.toRepresentation(), requestCallback);
} catch (RequestException e) {
handler.onError(null, e);