@Override
    public ResourceType getResourceTypeByResourceId(String id) {
        if (resources.containsKey(id)) {
            Resource resource = resources.get(id);
            return resource.getResourceType();
        } else {
            return null;
        }
    }