'A dreadful thing to do': Judge slams burglar for Wakefield