JCR-2307: Reverted the code reformat and fixed the typo