public static ResourceType determineResourceType(final String resourceName) {
        for ( Map.Entry<String, ResourceType> entry : CACHE.entrySet() ) {
            if (resourceName.endsWith(entry.getKey())) {
                if (entry.getValue().equals(ResourceType.DRT)) {
                    LOG.warn("DRT (Drools Rule Template) is deprecated. Please consider drools-decisiontables or third party templating features.");
                }
                return entry.getValue();
            }
        }
        return null;
    }
@Test
    public void testDetermineResourceType() {
        assertThat(ResourceType.determineResourceType("test.drl.xls")).isEqualTo(ResourceType.DTABLE);
        assertThat(ResourceType.determineResourceType("test.xls")).isNull();
    }