// Build solver
SolverFactory<CloudBalance> solverFactory = SolverFactory.createFromXmlResource(
"org/.../cloudBalancingSolverConfig.xml");
Solver<CloudBalance> solver = solverFactory.buildSolver();
// Solve it
CloudBalance solvedCloudBalance = solver.solve(unsolvedCloudBalance);