Make sure dukes-age is selected in the Project menu.
Select File -> New File.
Select Web Services in the Categories pane.
Select RESTful Web Services From Patterns in the File Types pane.
Under Select Pattern select Singleton and click Next.
Set Resource Package to firstcup.webservice.
Under Path enter dukesAge.
Under Class Name enter DukesAgeResource.
Under MIME Type select text/plain.
You should now see the DukesAgeResource.java file inside the firstcup.webservice package in the Projects pane. The DukesAgeResource.java file should also be open in the editor pane.