Java library example.