if (expectedMediaType != null) {
invocationBuilder = invocationBuilder.accept(expectedMediaType);
}
final Invocation invocation = getInvocationBuildInvoker(command,
commandMetaData).invoke(invocationBuilder, method);
final Response restResponse = invocation.invoke();
final String serverTransactionId = restResponse
.getHeaderString(DNSAPIClientHeaders.SERVER_TRANSACTION_ID);
commandMetaData.put(DNSAPIClientCommandMetaData.SERVER_TRANSACTION_ID,
serverTransactionId);
if (restResponse.getStatus() != expectedStatusCode) {