Custom Granter bean not found

see http://stackoverflow.com/questions/15438472/no-bean-named-but-bean-is-defined