Using ResourceType.determineResourceType() in KnowledgeBaseBuilders