tweaked initialization/preparation order, added getResourceMetadata to workspace in order to get dependency resolution to properly work