Writing a Java Access Control Resource Policy