B2SAFE service core code for EUDAT project