Joreman is a Java client that enables you to perform common Foreman tasks in Java.
ForemanClient foreman = new ForemanClientFactory().createClient();
ForemanVM vm = foreman.newHost()
.withName("MyTestVM")
.build();
Visit http://theforeman.org