imho 

public MessageCodesResolver messageCodesResolver()  

method looks not being formatted at all ?