some more minor improvements to the java api, related with MARMOTTA-508