fix bug in resource loading and sort lombok