I want to create my own roles.
And based on that roles i want to intercept the urls.
I couldn't find a proper solution.

e.g
<security:intercept-url pattern="/role1actions" access="MY_ROLE1"/>
<security:intercept-url pattern="/role2actions" access="MY_ROLE2"/>

How can i do this? Please help.