final int returnCode = nm.getIntValue("Code");
final String codeDescription = nm.getStringValue("CodeDescription");
final boolean isFatal = nm.getBoolValue("Fatal");
if( task.isModeDownload() ) {
final FcpResultGet result = new FcpResultGet(false, returnCode, codeDescription, isFatal, null);
task.setFcpResultGet(result);
} else {
final FcpResultPut result = new FcpResultPut(FcpResultPut.Error, returnCode, codeDescription, isFatal);
task.setFcpResultPut(result);
}