class HostResourcesService {

    public HostResources createAndConfigureHostResources(HostVO hostVo) {
        HostResources hResources = new HostResources();
        hResources.setHostId(hostVo.getId());
        hResources.setHostName(hostVo.getName());
        hResources.setSpeed(hostVo.getSpeed());
        hResources.setCpus(hostVo.getCpus());
        hResources.setTotalMemoryInBytes(hostVo.getTotalMemory());
        return hResources;
    }

}