Framework for handling and retrieving metadata in Java