class DynamicDimension implements Dimension {

    private String id;
    private String name;
    private DimensionType type;
    private Map<String, Object> options;


    public static DynamicDimension of(DimensionEntity entity,
                                      DimensionType type) {<FILL_FUNCTION_BODY>}
}

        DynamicDimension dynamicDimension = new DynamicDimension();
        dynamicDimension.setId(entity.getId());
        dynamicDimension.setName(entity.getName());
        dynamicDimension.setType(type);
        Map<String, Object> options = new HashMap<>();
        options.put("parentId", entity.getParentId());
        options.put("path", entity.getPath());
        dynamicDimension.setOptions(options);
        return dynamicDimension;

    
<no_super_class>