Adding an index resource for Java EE components