class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    protected long getNextSystemVmId() {
        Long id = autonomiccsSystemVmDao.getNextInSequence(Long.class, "id");
        if(id == null){
            throw new CloudRuntimeException("It was not possible to find an id to create a system VM.");
        }
        return id;
    }

}