added example with subresources and programmtic bean managing