Added a java code that replaces the python invenio routines; no unittests probably will be made; let's work towards removing it completely