Java library for Foreman