Resource
interface that has to be implemented in order to use repositories with a given type T. It also defines how to serialize and deserialize the given type T to and from String. The functions serializeList and deserializeList must be implemented when using it within a QueryRepository.