Fixed class returned from FileResourceGenerator.getResourceType