Why not just 

    configuration.grant("developer").to(developer.getLoginName()); ?