protected void onPutFailed(final MessageTransferTask task, final NodeMessage nm) {
final int returnCode = nm.getIntValue("Code");
final String codeDescription = nm.getStringValue("CodeDescription");
final boolean isFatal = nm.getBoolValue("Fatal");
final FcpResultPut result;
if( returnCode == 9 ) {
result = new FcpResultPut(FcpResultPut.KeyCollision, returnCode, codeDescription, isFatal);
} else if( returnCode == 5 ) {
result = new FcpResultPut(FcpResultPut.Retry, returnCode, codeDescription, isFatal);
} else {
result = new FcpResultPut(FcpResultPut.Error, returnCode, codeDescription, isFatal);
}
task.setFcpResultPut(result);
setTaskFinished(task);
}