How read and user metadata in Java with Spring