TransactionStatus (TransactionStatus existingStatus, Message newError) { if(existingStatus == null) { return newError; } TransactionStatus timeSheetSaveStatus = new TransactionStatusImpl(Transaction_status.ERROR, ); return timeSheetSaveStatus; }