added support to create resources and resource links in server.xml and context.xml