Add documentation how to use it in java code