This is a maven project example of a possible aproach to implenent the IEC 62325-504 standard using Red Electrica de España library - https://www.ree.es/es/.
REE release information (IEC TS 62325-504:2015) https://www.esios.ree.es/en/operation-headlines/new-communications-standard-iec-ts-62325-504-2015
The basic dependencies required to work with the library are already provided in the pom.xml file. Although for future reference they are publicly available for maven projects in the following location: https://mvnrepository.com/artifact/es.ree.eemws