Simple persistence layer for java