Sample code:
No, that's impossible. Take a look here. You can use resources to specify a label, but not the name:
The name must be unique, so it should use Java-style scoping — for example, "com.example.project.PERMITTED_ACTION".