class AdministrationAgent implements InitializingBean {

    protected void checkIfHostIsUpAndEnabled(long hostId) {
        if (!hostService.isHostUpAndEnabled(hostId)) {
            throw new CloudRuntimeException(String.format("Host [id=%d] is not Up and/or Enabled", hostId));
        }
    }

}