private void writeSerializable(YamlFile yamlFile, String key, Class<?> value)
    {
        ConfigurationSerializable serializable = getSerializable(value);
        Map<String, Object> serialized = serializable.serialize();
        Map<String, String> serializedTypes = new HashMap<>();

        for(String s : serialized.keySet())
        {
            serializedTypes.put(s, serialized.get(s).getClass().getName());
        }

        yamlFile.set(key, serializedTypes);
    }