Changing methods visibility and adding bean name